What will be the output of following program? Justify your answer.
#include<stdio.h>
void main()
{
int x,y,z;
y=2;
x=2;
x=2*(y++);
z=2*(++y);
printf(“\n x=%d y=%d z=%d”,x,y,z);
}
The answer to your question is provided in the image:
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment