main()
{
int i=5;
printf(“%d”,i=++i ==6);
}
Answer:
1
Explanation:
The expression can be
treated as i = (++i==6), because == is of higher precedence than = operator. In
the inner expression, ++i is equal to 6 yielding true(1). Hence the result.
Blog Author: Vijay Kumar
No comments:
Post a Comment