正在加载图片...
B)01234 024681012141618 C)0123456789 0123 D)024681012141618 024681012141618 【题8.26】以下程序的正确运行结果是 #include <stdio. h> void num o extern int x inta=15,b=10; X-a- int x, y malI int a=7, b=5 printf(“%d,%dn”,x,y) A)12,2B)不确定 C)5,25D)1,12 【题8.27】凡是函数中未指定存储类型的局部变量,其隐含的存储类别为 A)自动(auto) B)静态( static) C)外部( extern) D)寄存器( register) 【题8.28】在一个C源程序文件中,若要定义一个只允许本源文件中所有函数使用的全局 变量,则该变量需要使用的存储类别是 A) extern B)register C) auto D) static 【题8.29】以下程序的正确运行结果是 malI for(i=0;i<3;i++) printf(“%4d”,f(a)) f(int a)B) 0 1 2 3 4 0 2 4 6 8 10 12 14 16 18 C) 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 D) 0 2 4 6 8 10 12 14 16 18 0 2 4 6 8 10 12 14 16 18 【题 8.26】以下程序的正确运行结果是 。 #include <stdio.h> void num() { extern int x,y; int a=15,b=10; x=a-b; y=a+b; } int x,y; main() { int a=7,b=5; x=a+b; y=a-b; num(); printf(“%d,%d\n”,x,y); } A)12,2 B)不确定 C)5,25 D)1,12 【题 8.27】凡是函数中未指定存储类型的局部变量,其隐含的存储类别为 。 A)自动(auto) B)静态(static) C)外部(extern) D)寄存器(register) 【题 8.28】在一个 C 源程序文件中,若要定义一个只允许本源文件中所有函数使用的全局 变量,则该变量需要使用的存储类别是 。 A)extern B)register C)auto D)static 【题 8.29】以下程序的正确运行结果是 。 main() { int a=2,i; for(i=0;i<3;i++) printf(“%4d”,f(a)); } f(int a) {
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有