单项选择题
有以下程序: #include <stdio.h> #include <string.h> main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"}; printf("%d\n",strlen(p[4])); } 执行后的输出结果是( )。
A.2
B.3
C.4
D.5
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列关于栈的叙述中正确的是( )。
A.在栈中只能插入数据
B.在栈中只能删除数据
C.栈是先进先出的线性表
D.栈是先进后出的线性表
点击查看答案&解析
单项选择题
有以下程序: #include <stdio.h> void sum(int *a) { a[0]=a[1]; } main() { int aa[10]={1,2,3,4,5,6,7,8,9,10},i; for(i=2;i>=0;i--) sum(&aa[i]); printf( %d n ,aa[0]); } 执行后的输出结果是( )。
A.4
B.3
C.2
D.1
点击查看答案&解析
相关试题
下面程序的功能是输出以下形式的金字塔图案...
有以下程序: #include <stdio.h> s...
B
有以下程序: #include <stdio.h> s...
有以下程序: #include <stdio.h> m...