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