I wonder what kind of expression is ({ .. statements .. }) in C?
For example:
#include <stdio.h>
int main() {
int x = ({
const int i = 10;
i*2;
});
printf("Result: %d\n", x);
return 0;
}
The above code returns 20. So it seems like the statements in ({ .. }) are executed and the result of the last statement returned? What type of construction is it? Where do I read more about it?