What is a statement like this?
int x = ( { int a; scanf( "%d", &a ); a ; } ) ;
It compiles and executes the equivalent:
int x; scanf( "%d", &x );
It seems to be some kind of anonymous function call or something like that, but I'm not sure. I have not seen statements like ({})
before, and I cannot find any explanation on the Internet. Any help would be greatly appreciated, thanks :)
Context:
This is the code you get when the macros in the following code expand:
This is the code used by someone in a programming competition.
source share