CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

The Comma Operator's Value

C code walkthrough · Question 31
hardOperators

Code

Read carefully. What does this print?
1#include <stdio.h>
2int main() {
3 int x = (1, 2, 3);
4 int y = 5;
5 y = (y++, y + 1);
6 printf("%d %d\n", x, y);
7 return 0;
8}

Your answer