Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the integers a=5, b=3, c=2, and z is a float. Which of the following operations sets z to 8.00 a. z=a+b+c/2.5; b. z=1/2*a+b+c; c.
Consider the integers a=5, b=3, c=2, and z is a float. Which of the following operations sets z to 8.00
a. z=a+b+c/2.5;
b. z=1/2*a+b+c;
c. z=0.5*a+b+c;
d. None of the given
Assume proper initialization, what is the output of:
for(j=0; j<5; j++) {
printf("%d ",j);
if (j ==2) continue;
}
a.
0 1 2 3 4
b.
0 1 2
c.
3 4
d.
0 1 3 4
What is the output :
int i=2, a[6]={1,2,3,4,5,6};
printf(" %d ",a[i++]++);
printf("%d ",i);
a.
2 2
b.
2 4
c.
2 3
d.
3 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started