单项选择题

有以下程序:
main()
int a=666, b=888;
printf("% d\n", a, b);
程序运行后的输出结果是______。

A.错误信息
B.666
C.888
D.666,888
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: main() int s=0, a=1,n; scanf( % d , &n); do s+=1; a=a-2; while(a!=n) printf( % d n , s); 若要使程序输出2,则应该从键盘输入的值是______。
A.-1
B.-3
C.-5
D.0
单项选择题
有以下程序: float fun(int x, int y) return(x+y); main() int a=2, b=5, c=8; printf( % 3.0f n , fun((int)fun(a+c, b) , a-c) ); 程序运行后的输出结果是______。
A.编译错误
B.9
C.21
D.9.0
相关试题
  • 以下程序中函数reverse的功能是对a所指数组...
  • 有以下程序: struct STU char name[...
  • 以下程序的输出结果是______。 char...
  • 有以下程序: void sott(int a[], ...
  • 以下程序中函数sort的功能是对a所指数组中...