sizeof( function )

Mihai Donțu mihai.dontu@gmail.com
Tue Jun 12 16:12:00 GMT 2007


Hi,

Not that is of great importance, but does anyone know why

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

prints 1 ? :)

(sizeof( &main ) prints 4/8 as it should)

-- 
Mihai Donțu



More information about the Gcc-help mailing list