普及中元節(jié)來(lái)歷的相關(guān)知識(shí)介紹范文
下面是由應(yīng)屆畢業(yè)生筆試網(wǎng)推薦的C語(yǔ)言筆試題目

一、判斷題(對(duì)的寫(xiě)T,錯(cuò)的寫(xiě)F并說(shuō)明原因)
1、有數(shù)組定義inta[2][2]={{1},{2,3}};則a[0][1]的值為0。()
2、int(*ptr)(),則ptr是一維數(shù)組的名字。()
3、指針在任何情況下都可進(jìn)行>,<,>=,<=,==運(yùn)算。()
4、switch(c)語(yǔ)句中c可以是int,long,char,float,unsignedint類(lèi)型。()
5、#defineprint(x)printf("theno,"#x",is")
二、填空題
1、在windows下,寫(xiě)出運(yùn)行結(jié)果,每空2分,共10分。
charstr[]="Hello";
char*p=str;
intn=10;
sizeof(str)=()
sizeof(p)=()
sizeof(n)=()
voidfunc(charstr[100])
{}
sizeof(str)=()
2、voidsetmemory(char**p,intnum)
{*p=(char*)malloc(num);}
voidtest(void)
{char*str=NULL;
getmemory(&str,100);
strcpy(str,"hello");
printf(str);
}
運(yùn)行
test函數(shù)有什么結(jié)果?()
【普及中元節(jié)來(lái)歷的相關(guān)知識(shí)介紹】相關(guān)文章:
中元節(jié)的來(lái)歷與傳說(shuō)08-20
詞語(yǔ)發(fā)現(xiàn)的相關(guān)知識(shí)解析04-17
甘蔗的知識(shí)介紹08-02
元宵節(jié)的來(lái)歷和習(xí)俗介紹02-05
中元節(jié)的由來(lái)09-11
中元節(jié)習(xí)俗08-20
公文寫(xiě)作基礎(chǔ)知識(shí)「介紹」08-23
春聯(lián)的來(lái)歷01-31
清明的來(lái)歷05-04
- 相關(guān)推薦