C++ curly brace inside parentheses

Viewed 54

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 Answers
Related