2025年11月21日 用getchar()从键盘上输入一个字符,用putchar()打印出来!参考程序1与参考程序2都可以实现题目要求。#include int main(){ char a; a=getchar(); putchar(a);return 0;}参考程序2:#include int main(){ char ch;scanf(“%c”,&ch);printf(“%cn”,ch);return 0;} A.对 B.错 用getchar()从键盘上输入... 进一步了解 未分类
2025年11月21日 若有说明:int a=2,*p=&a,*q=p;,则以下非法的赋值语句是( )。 A.*p=*q B.q=a C.p=q D.a=*q 若有说明:int a=2,*p=... 进一步了解 未分类
2025年11月21日 有下列程序,程序运行后的输出结果是( )。#include int main(){int x=0,y=2, z=3;switch(x){ case 0: switch(y==2) { case 1: printf(“*”); break; case 2: printf(“%”); break; } case 1: switch(z) { case 1: printf(“$”); case 2: printf(“*”); break; default: printf(“#”); }}} A.*$ B.*# C.*% D.** 有下列程序,程序运行后的输出结果... 进一步了解 未分类
2025年11月21日 有下列程序段,程序段运行后的输出结果是( )。char b1[8]=”abcdefg”, b2[8], *pb=b1+3;while( –pb>=b1) strcpy(b2, pb);printf(“%d”, strlen(b2)); A.7 B.3 C.1 D.8 有下列程序段,程序段运行后的输出... 进一步了解 未分类
2025年11月21日 以下不构成无限循环的语句组是( )。 ;background:yellow;background:yellow do {++n;}while (n<=0); A.int n=10;while (n);n--; B.int n=0;while (1)n++; C.int n=0,i;for (n=0,i=1; ;i++)n+=i; D.int n=0 以下不构成无限循环的语句组是( ... 进一步了解 未分类