联发科笔试题及详细答案.docxVIP

  • 1
  • 0
  • 约8.48千字
  • 约 9页
  • 2026-06-03 发布于河北
  • 举报

联发科笔试题及详细答案

一、不定项选择题(每题3分,共30分,错选、漏选不得分)

如下程序输出结果是()

#defineX2

#defineY3+X*X

intmain()

{

inta=X*X+Y*Y;

printf(%d,%x,a,a);

return0;

}A.53,35B.23,17C.53,53D.23,23

下面程序能否正常编译运行?()

#includestdio.h

intmain(intargc,char*argv())

{

char*consta=world;

char*b=student;

a=hello;

b=boy;

printf(%s%s,a,b);

return0;

}A.可以正常编译运行,输出结果为“helloboy”B.可以正常编译运行,输出结果为worldstudentC.可以正常编译运行,输出结果为”hellostudentD.可以正常编译运行,输出结果为”worldboy”E.不可以正常编译运行,a=hello语句错误,因为a被申明为const

以下对结构体类型变量的定义中,正确的是()

A.typedefstructaa{intnum;char*name;}AA;AAstu1;B.#d

文档评论(0)

1亿VIP精品文档

相关文档