C语言基础题库英文版及答案.docVIP

  • 4
  • 0
  • 约1.99千字
  • 约 3页
  • 2026-04-17 发布于河北
  • 举报

C语言基础题库英文版及答案

1.WhatistheoutputofthefollowingCcode?

```c

includestdio.h

intmain(){

inta=5;

printf(%d\n,a++);

return0;

}

```

(5points)

2.WhichofthefollowingisavalidwaytodeclareafunctioninC?

A.intfunction(){}

B.function()int{}

C.intfunction;{}

(3points)

3.Whatdoesthefollowingcodedo?

```c

includestdio.h

intmain(){

intarr[5]={1,2,3,4,5};

intptr=arr;

printf(%d\n,(ptr+2));

return0;

}

```

(5points)

4.WhatistheresultofthefollowingexpressioninC?

5324

(3points)

5.Whichloopisbestsuitedwh

文档评论(0)

1亿VIP精品文档

相关文档