What will be the output of the following C code? [code] #include <stdio.h> int main() { int i = 2; int i =

Thanh Hoan

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int i = 2;
        int i = i++ + i;
        printf("%d\n", i);
    }
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. = operator is a sequence point
 

Tìm kiếm

Back
Top