Interview Questions

What will be printed as the result of the operation below: main(){int x=10, y=15; ...

C Interview Questions and Answers


(Continued from previous question...)

What will be printed as the result of the operation below: main(){int x=10, y=15; ...

What will be printed as the result of the operation below:
main()
{
int x=10, y=15;
x = x++;
y = ++y;
printf(“%d %d\n”,x,y);

}


Answer: 11, 16

(Continued on next question...)

Other Interview Questions