Skip to content

Assignment Operator

int c = 0;
std::cout << (c = 10) << std::endl;
10

Let's say we have an assignment expression c = 10 then it evaluates to 10.