畢博信息技術有限公司 (BearingPoint)員工筆試
發布時間:2011/5/12
試題及答案:
二、填空題(共30分)
1、在windows下,寫出運行結果,每空2分,共10分。
char str[ ]= ”Hello”;
char *p=str;
int n=10;
sizeof(str)=( 6 )
sizeof(p)=( 4 )
sizeof(n)=( 4 )
void func(char str[100])
{ }
sizeof(str)=( 4 )
2、void setmemory(char **p, int num)
{ *p=(char *) malloc(num);}
void test(void)
{ char *str=NULL;[全文……]
1、在windows下,寫出運行結果,每空2分,共10分。
char str[ ]= ”Hello”;
char *p=str;
int n=10;
sizeof(str)=( 6 )
sizeof(p)=( 4 )
sizeof(n)=( 4 )
void func(char str[100])
{ }
sizeof(str)=( 4 )
2、void setmemory(char **p, int num)
{ *p=(char *) malloc(num);}
void test(void)
{ char *str=NULL;[全文……]
- 當前共有1條記錄,每頁1條,當前1/1頁
- 上一頁
- 1
- 下一頁