单选题若有定义“int a[5],*p=a;”则正确引用数组元素的是( )。
单选题以下程序的输出结果是{{U}} {{/U}}。 #include
<stdio.h> charcchar(char eh) {
if(ch>='A,&&ch<='Z') ch=ch-'A'+'a'; return
ch; } main() { char
s[]="ABC+abc=defDEF",*p=s; while(*p)
{ *p=cchsr(*p); p++; }
printf("%s/n",s); }
A. abc+ABC=DEFdef
B. abc+abc=defdef
C. abcABCDEFdef
D. abcabcdefdef
单选题以下叙述中正确的是
单选题C语言的文件操作过程中,以下描述中正确的是( )。
单选题以下函数值的类型是 ( ) fun (float x) float y; y=3 * x-4; return y;
单选题以下程序的运行结果是 #define MAX(A,B) (A)>(B)?(A):(B) #define PRINT(Y) printf(:Y=%d/t",Y) main() int a=1,b=2,c=3,d=4,t; t:MAX(a+b,c+d); PRINT(t); A) Y=3 B) 存在语法错误 C) Y=7 D) Y=0
单选题现有以下结构体说明和变量定义,如图所示,指针P、q、r分别指向一个链表中连续的三个结点。structnode{chardata;structnode*next;}*P,*q,*r;现要将q和r所指结点交换前后位置,同时要保持链表的连续,以下不能完成此操作的语句是【】。
单选题若有以下程序段 char str[4][12]="aa","bbb","ccccc","d",*strp[4]; int i; for(i=0;i<4;i++)strp[i]=str[i]; 不能正确引用字符串的选项是______。 A.strp B.str[0] C.strp[3] D.*strp
单选题有以下程序段 main() char a[7]="abcdef"; charb[4]="ABC"; strcpy(a,b) ; printf("%c",a[5]); 程序段运行后的输出结果是 ( ) A) a B) /0 C) e D) f
单选题有以下程序: main() int i; for(i=0;i<3;i++) switch(i) case1:printf("%d",i); case2:printf("%d",i); default:printf("%d",i); 执行后输出结果是( )。
单选题若有定义语句:
char c="/101";
则变量c在内存中占______。
单选题c语言的基本单位是( )。 A) 函数 B) 过程 C) 子程序 D) 子函数
单选题有以下程序: main() int I; For (i=0;i<3;i++) switch(i) case 0:printf("%d",i); case 2:printf("%d",i); default:printf("%d",i); 程序运行后的输出结果是 ______。
单选题下面程序段的输出结果是______。 main() { char x=10000111,c; c=(x-2)^(x+2); printf("%d/n",c); }
单选题有以下程序 main() char a,b,c,d; scanf("%c,%c,%d,%d", printf("*c,%c,%c,%c/n", a,b,c,d) ; 若运行时从键盘上输入:6,5,65,66<回车>。则输出结果是______。
单选题下列模式中,能够给出数据库物理存储结构与物理存取方法的是( )。
单选题有以下程序: main() { int x=5,y=2,z=1; printf("%d/n",x%y&~z); }程序运行后的输出结果为______。
单选题有以下程序: #define N 2 #define M N
+1 #define NUM 2 * M+1 main()
{ int i; for(i=1; i<=NUM; i++) printf("% d/n", i);
} 该程序中的for循环执行的次数是______。
A.5
B.6
C.7
D.8
单选题有以下程序
#include
void my_put()
{ char ch;
ch = getchar();
if (ch != 'C') my_put();
putchar(ch);
}
main( )
{
my_put();
}
执行时输入:ABC,则输出结果是
单选题设计软件结构是在软件生命周期的
____
。