Sail E0 Webinar
Question
Comment on the output of this C code?    int main()    {        int i = 2;        int i = i++ + i;        printf("%d\n", i);    }
Options:
A .  = operator is not a sequence point
B .  ++ operator may return value with or without side effects
C .  it can be evaluated as (i++)+i or i+(++i)
D .  Both a and b
Answer: Option A


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers