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

匿名网友 匿名网友 发布于: 2015-08-30 00:00:00
阅读 132 收藏 0 点赞 0 评论 0

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 分)

评论列表
文章目录