以下为Windows NT 下的32 位C++程序,请计算sizeof 的值

void Func ( char str[100])
{
请计算
sizeof( str ) = 4 (2 分)
}
char str[] = “Hello” ;
char *p = str ;
int n = 10;
请计算
sizeof (str ) = 6 (2 分)
sizeof ( p ) = 4 (2 分)
sizeof ( n ) = 4 (2 分)
void *p = malloc( 100 );
请计算
sizeof ( p ) = 4 (2 分)

猜你喜欢

转载自blog.csdn.net/weixin_49249294/article/details/108900203