S
sam
int i=0;
printf("%d %d %d %d",++i,++i,++i,++i);
output:
4 3 2 1
why is not
1 2 3 4
I tried the code both in lcc32 and gcc both are giving same output
but for below code
printf("%d %d",p(),k());
function p() is called first in both lcc and gcc.
printf("%d %d %d %d",++i,++i,++i,++i);
output:
4 3 2 1
why is not
1 2 3 4
I tried the code both in lcc32 and gcc both are giving same output
but for below code
printf("%d %d",p(),k());
function p() is called first in both lcc and gcc.