sizeof( function )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux