Thread: small but odd!
View Single Post
Old 11-30-2005, 02:47 PM   #1 (permalink)
i_learn
 
True Techie

Join Date: Nov 2005

Posts: 115

i_learn

Default small but odd!

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 **** does it give me that output
i_learn is offline