recently I ran into a strange grammar of C Programming Language.
First, let's see the code:
main(void) {
int a[10:> ;
printf("asdf");
return 0;
}
And you can compile it with gcc:
/tmp gcc sample.c
sample.c: In function ‘main’:
sample.c:3: warning: incompatible implicit declaration of built-in function ‘printf’
As you can see, there's no error or any warning related to it. So this means :>
equals to ]
in CPL?
How can that happen?
BTW: I'm using gcc 4.2.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With