# C語言題庫-002 以下爲Linux下的32 位C 程序,請計算sizeof 的 值。 ``` char str[] = “Hello” ; char *p = str ; int n = 10; ``` 請計算 ``` (1)sizeof (str ) = (2)sizeof ( p ) = (3)sizeof ( n ) = (4)void Func ( char str[100]) { …… ; } ``` 請計算sizeof( str ) = (5)void * p = mall oc( 100 ); 請計算sizeof ( p ) = 【標準答案】(1)6(2)4(3)4(4)4(5)4
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up