sizeof(function)

Andi Kleen ak@muc.de
Fri Jun 16 10:04:00 GMT 2000


The following program outputs 1: 

main()
{
	printf("%d\n",sizeof(main));
}	

Why does it not give an error ? The c9x draft does not seem to define
this case, but surely it should at least warn about this.

-Andi

-- 
This is like TV. I don't like TV.


More information about the Gcc-bugs mailing list