单项选择题
下面程序段的输出结果是( )。
char str[]="ABC",*p=str;
Printf("%d\n",*(p+3));
A) 67 B) 0 C) 字符'C'的地址 D) 字符'C'
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: void swapl(int c0[],int c1[]) int t; t=c0[0];c0[0]=c1[0];c1[0]=t; void swap2(int*c0,int*c1) int t; t=*c0;*c0=*c1;*c1=t; main() int a[2]=3,5),b[2]=3,5; swapl(a,a+1);swap2(&b[0],&b[1]); printf( %d%d%d%d n ,a[0],a[1],b[0],b[1]); 程序运行后的输出结果是______。
A) 3 5 5 3
B) 5 3 3 5
C) 3 5 3 5
D) 5 3 5 3
点击查看答案&解析
单项选择题
有以下程序: # include<stdio.h> main() char*p,*q; p=(char *)malloc(sizeof(char)* 20);q=p; scanf( %s %s ,p,q);printf( %s %s n ,p,q); 若从键盘输入;abc def<回车>,则输出结果是 ______。
A) def def
B) abc def
C) abe d
D) d d
点击查看答案&解析
相关试题
有以下程序 #include<stdio.h> #inc...
有以下程序: #include <stdio.h> ...
以下函数值的类型是______。 fun(f...
变量a中的数据用二进制表示的形式是010...
以下程序运行后的输出结果是 #include<s...