有以下程序
#include<stdio.h>
main()
{unsigned char a=8,c:
c=a>>3;
printf(“%d\n”,c):
}
程序运行后的输出结果是
A.32
B.16
C.1
D.O
第1题:
有以下程序 #include<string.h> main() { char *p=“abcde、Ofghjik\0”; printf(“%d\n”,strlen(p)); } 程序运行后的输出结果
A.12
B.15
C.6
D.5
第2题:
有以下程序: #include <string.h> main() {char *p="abcde\Ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是( )。
A.12
B.15
C.6
D.5
第3题:
有以下程序 #include.<string.h> main() { char *p="abcde\ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是
A.12
B.15
C.6
D.5
第4题:
有以下程序: point(char *p){p+=3;} main() {char b[4]={'a','b','c','d',},*p=b; point(p);printf("%c\n",*p); } 程序运行后的输出结果是 ______。
A.a
B.b
C.c
D.d
第5题:
有以下程序: point(char *p) { p+=3; } main() { char b[4]={'a','b','c','d'}, *p=b; point(p); printf("%c\n",*p); } 程序运行后的输出结果是( )。
A.a
B.b
C.c
D.d
第6题:
有以下程序: #include<string.h> main( ) { char *p="abcde\0ghjik\0"; printf("%d\n",strlen(p) ); } 程序运行后的输出结果是
A.12
B.15
C.6
D.5