Programmer Question
C-faq says:
the code
int i = 7;
printf("%d\n", i++ * i++);
prints 49. Regardless of the order of evaluation, shouldn't it print 56?
But when i ran this code on my turbo C 3.0 compiler it gave me the output 56.Why is there a controdiction?
Find the answer here
No comments:
Post a Comment