C++ curly brace inside parentheses

81 Views Asked by At

I countered the following code for the first time. I am confused about its syntax and why it would work.

int b = ({
        int c = 2;
        c;
    });
std::cout << b;
0

There are 0 best solutions below