38。全球第三、欧洲第一的大半导体企业
意法半导体软件试题
&heingLanguage
I。History
1。Cwasinallydesignedforahe(eratiheDECPDP-11,by(who)。
2。ThemostretlyapprovedANSIISOdardwasissuedin(when),andsisnotation“”isorisureofC89。
II。Syntaxaics
1。Inaruntime,autovariablesarestoredin,staticvariablesarestoredin,andfunetersarestoredin。
a。stackb。heapeitherstaorheap
2。Thestatemex;”isa,aernisusedduring。
a。variabledeb。variabledefinition
pilatioime
3。Thereisaplicatedde:void(*signal(int,void(*)(int)))(int);
Ifastatement“typedefvoid(*p)(int);”isgiveethisplicatedde。
4。Thefollowingcodeisasegmentram。
。。。。。。。。。。
voidfunt*p)
{。。。。。。。。。。。}
。。。。。。。。。。
main()
{
intnum=0;
。。。。。。。。。
funum);
。。。。。。。。
}
。。。。。。。。。。
&hefunent“&num”ispassed。
a。byvalueb。byreference
III。Practice
&ree,whichhash(h0)layers,anditseaodehasw(w0)sub-nodes。
Pleasepletethefollowingiion。
#include
#include
structtree{
fo;
p_sub;linktosub-nodes