3 ms·
I don't believe that is valid C code; you can't assign a variable to a block.
by qixxiq 16y ago
I don't believe that is valid C code; you can't assign a variable to a block.
- beza1e1 16y agoOk, i should have tried it. It does not work with a declaration. However, this code compiles just fine: int main(void) { int select = 6, from = 2; int x = {select * from}; printf("%d\n",x); // prints 12 return 0; } gcc and clang only complain the missing include for printf. cparser (which i'm working on) prints "warning: extra curly braces around scalar initializer".