Vidyalelo
C Programming · Q177

C Fundamentals

Programming · C Programming · question 177

Q177

Comment on the behaviour of the following C code? #include int main() int i = 2; i = i++ + i; printf("%d ", i);

A.
= operator is not a sequence point
Answer
B.
++ operator may return value with or without side effects
C.
it can be evaluated as (i++)+i or i+(++i)
D.
= operator is a sequence point

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board