Recent questions tagged increment

11 11 votes
2 2 answers
332
332 views
What is the output of the following code?#include <stdio.h int main() { int x = 3, y = 4, z; z = x++ + ++y; printf("%d %d %d", x, y, z); return 0; }$\texttt{4\ 5\ 8}$ $\t...
0 0 votes
1 answers 1 answer
834
834 views
The output of this program comes out to be 0,Why not 1?Because: a=0;will be assigned then a++;So now 0 will be 1; a=1; This freaks me out !!#include <stdio.h>int main(){...
To see more, click for the full list of questions or popular tags.