3 ms·
Ok, 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; in
by beza1e1 16y ago
Ok, 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".