Saturday, March 6, 2010

55

#include< stdio.h >
main()
{
int a=1;
a=a+++a;
printf("%d",a);
}


output


3
Logic:
while reading the token , it is read by character by character from left to right(->)
so, the operation is equal to a++ +a.
op.jpg

0 comments:

Post a Comment