Answer to Question #293733 in Engineering for Jagruti

Question #293733

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);


}

1
Expert's answer
2022-02-04T12:46:02-0500

The answer to your question is provided in the image:

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS