C | Operators | Question 24
Output of following C code will be?
C
#include <stdio.h>
int main() {
int x = 10;
int y = (x++, x++, x++);
printf ( "%d %d\n" , x, y);
return 0;
}
|
(A)
13 12
(B)
13 13
(C)
10 10
(D)
Compiler Dependent
Answer: (A)
Explanation:
Option A is correct.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Last Updated :
28 Jun, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...