What’s this C++ syntax that puts a brace-surrounded block where an expression is expected?

It assigns user input value to a and prints it out. it is done by using a Statement Expression. Statement Expressions are a gnu gcc compiler extension and are not supported by the C/C++ standards. Hence, any code which uses statement expression is not standard conforming and non-portable. The IBM XL C/C++ v7.0 also support … Read more