we have this written paper on c programin, and these were some which stumped me,
......
......
int j=1,q;
q=j++ + ++j + j++;
printf("%d %d",q,j);
getch();
clrscr();
q=j++ + ++j + ++j;
printf("%d %d",q,j);
getch();
}
think about the output, and check it out,
if you got how these compilers work, let me know.
i tried it on my comp later, and got values that baffle me, how the hell does it give me that output
......
......
int j=1,q;
q=j++ + ++j + j++;
printf("%d %d",q,j);
getch();
clrscr();
q=j++ + ++j + ++j;
printf("%d %d",q,j);
getch();
}
think about the output, and check it out,
if you got how these compilers work, let me know.
i tried it on my comp later, and got values that baffle me, how the hell does it give me that output