文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > 资格考试/认证 > IT认证 > 2014年计算机二级C语言考试上机冲刺试题 2
侵权投诉

2014年计算机二级C语言考试上机冲刺试题 2

程序运行后的输出结果是( )。

A.7

B.8

C.9

D.10

35.有以下程序:

#includedstdi0.h>

#define f(x)X*x*x

main( )

{int a=3,S,t;

s=f(a+1);t=f((a+1));

printf("%d,%d\n",S,t);

)

程序运行后的输出结果是( )。

A.10,64

B.10。10

C.64,10

D.64,64

36.下面结构体的定义语句中,错误的是( )。

A.struct ord{int x;int Y;int Z;};struet ord a;

B.struct ord{int x;int y;int Z;}struct ord a;

C.struct ord{int X;int Y;int Z;}a;

D.struct{int X;int y;int Z;}a;

37.设有定义:“char*c;”,以下选项中能够使字符型指针c正确指向一个字符串的(

A.char str[]="strin9";c=str;

B.scanf(%s,c):

C.c=getchar( );

D.*c="strin9";

38.有以下程序:

#include

#include

struct A

(int a;char b[10];double C;);

struct A f(struct A t):

main( )

{struct A a={1001,"ZhangDa",l098.0};

a=f(a);printf("%d,%S,%6.1f\n",a.a,a.b,a.c);

)

struct A f(struct A t)

{t.a= 1002;strcpy(t.b,"ChangRon9");t.c=1202.0;return t;)

程序运行后的输出结果是( )。

A.1001,ZhangDa,1098.0

B.1002,ZhangDa,1202.0

C.1001,ChangRong,1098.0 。 )

上一页第8页

你可能喜欢

  • 全国计算机等级考试二级C语言
  • 大学英语考试技巧
  • 江苏省计算机二级c语言
  • 信息技术教师招聘考试
  • 英语四级考试技巧
  • 大学英语四级词汇下载
  • 高频词汇

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email