单项选择题

有以下程序:
# include <stdio.h>
int f(int x);
main()
int a,b=0;
for(a=0;a<3;a++)
b=b+f(a); putchar('A'+b);

int f(int x)
return x*x1;
程序运行后的输出结果是( )。

A.ABE
B.BDI
C.BCF
D.BCD

<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: # include <stdio.h> main() char a='H'; a=(a>='A' && a<='Z')(a-'A'+'a'): a; printf( %c n ,a); 程序运行后的输出结果是( )。

A.A
B.a
C.H
D.h

单项选择题
下列叙述中正确的是()。

A.可以用关系运算符比较字符串的大小
B.空字符串不占用内存,其内存空间大小是0
C.两个连续的单引号是合法的字符常量
D.两个连续的双引号是合法的字符串常量

相关试题
  • 以下函数的功能是输出链表结点中的数据,形...
  • 以下程序的输出结果是______。 # ...
  • 若有定义语句:char str[]= 0 ;,...
  • 有以下程序: # include <stdio.h>...
  • 有以下程序: # include <stdio.h>...