K
Ken Brody
On 5/5/2014 3:23 PM, Bill Cunningham wrote:
[...]
I'm coming in late to this discussion, but compilers are allowed to accept
invalid code, and (with some exceptions) are allowed to compile such code
without a peep.
A compiler is allowed to accept:
int i;
printf("%d %d %d\n",i++,i++,i++);
and even generate the output that you expected. That doesn't mean the code
was valid.
[...]
Oh yes and let me add too. They seem to have helped me but I will not
mention them because guess what? They're all wrong! Even though the compiler
accepts them and they seem to function!
I'm coming in late to this discussion, but compilers are allowed to accept
invalid code, and (with some exceptions) are allowed to compile such code
without a peep.
A compiler is allowed to accept:
int i;
printf("%d %d %d\n",i++,i++,i++);
and even generate the output that you expected. That doesn't mean the code
was valid.