M
muttaa
Hello all,
My doubt is going to be so primitive that i ask you all to forgive me
beforehand....
Here's the code snippet:
int main()
{
int x=5;
x=x++ + ++x;
printf("%d",x);
return 0;
}
I know that the printf is going to print some value of x which none can
predict accurately for all times for all compilers....However,why i ask
this is because such type of questions keep appearing in a lot of
Question Papers....
Help me suggest a way to tackle this..
Thanks in advance!
My doubt is going to be so primitive that i ask you all to forgive me
beforehand....
Here's the code snippet:
int main()
{
int x=5;
x=x++ + ++x;
printf("%d",x);
return 0;
}
I know that the printf is going to print some value of x which none can
predict accurately for all times for all compilers....However,why i ask
this is because such type of questions keep appearing in a lot of
Question Papers....
Help me suggest a way to tackle this..
Thanks in advance!