I was amazed to learn that this works:
Code:(int){ 0 } = 1;
I was amazed to learn that this works:
Code:(int){ 0 } = 1;
Last edited by flp1969; 02-09-2021 at 07:12 AM.
Is it just an anomaly? I can't see a use for it. Where did you see it?Code:int main() { // Create temporary struct and assign to it. typedef struct { int a; } x; (x){0} = (x){1}; // Also works for an int. (int){0} = 1; }
Ordinary language is totally unsuited for expressing what physics really asserts.
Only mathematics can say as little as the physicist means to say. - Bertrand Russell
Not an anomaly... Someone shown me this and I got directly to ISO standard (C99) and it is there... It's a valid expression.
Does nothing really (except create that annonymous automatic object) -- which is the same to say it does nothing at all.
I think this is very strange!![]()