有以下程序 #inc1ude<stdio.h> int f(int x,int y) { return((y-x)*x);) main() { int a=3,b=4,c=5,d; d=f(f(a,B) ,f(a,C); printf("%d\n",D); } 程序运行后的输出结果是()。
A.10 B.9 C.8 D.7
单项选择题设变量已正确定义,以下不能统计出一行中输入字符个数(不包含回车符)的程序段是()。
A.n=0;while((ch=getchar())!='\n')n++; B.n=0;while(getchar()!='\n')n++; C.for(n=0;getchar()!='\n';n++); D.n=0;for(ch=getchar();ch!='\n';n++);
单项选择题有以下程序 #inc1ude<stdio.h> main() { char*s={ ABC }; do { printf( %d ,*s%10); s++; } while(*s); } 注意字母A的ASCII码值为65。程序运行后的输出结果是()。
A.5670 B.656667 C.567 D.ABC