Vidyalelo
C Programming · Q236

C Fundamentals

Programming · C Programming · question 236

Q236

What will be the output of the following C code? #include int main() int i = 0; int x = i++, y = ++i; printf("%d % d ", x, y); return 0;

A.
0, 2
Answer
B.
0, 1
C.
1, 2
D.
Undefined

Answer: Option A

Solution

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