#include <iostream>
for std::cout
.x
and y
declared; y
initialized to 2
.x = (y++, 20, 30)
evaluates to 30
.y++
(post-increment) results in 2
.20
and 30
are direct values.30
).std::cout << x;
outputs 30
.std::cout << y;
outputs 3
.i++, j++
to increment two loop variables simultaneously.Thank you for attending the lecture on the comma operator.