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


}

Expert's answer

The answer to your question is provided below

LATEST TUTORIALS
APPROVED BY CLIENTS