有以下程序:void main(){char s[]="159",*p;p=s;printf("%c",*p++);printf("%c",*p++);}程序运行后的输出结果是( )。A.15 B.16 C.12 D.59
第1题:
有以下程序: #include <stdio.h> main( ) { char s[ ] ="159" , * p; p=s; printf( "% c", * p + + ); printf("%~", * p++);}程序运行后的输出结果是( )。
A.15
B.16
C.12
D.59
第2题:
请读程序: # include<stdio.h> f(char * s) {cahr * p=s; while(* p!='\0')p++; return(p-s); } main() {printf("%d\n”,f("ABCDEF"));} 上面程序的输出结果是 ( )
A.3
B.6
C.8
D.0
第3题:
以下程序运行后的输出结果是______。 ss(char*s) { char*p=s; while(*p)p++; return(p-s); } main() { char*a="abded";int i; i=ss(a); printf("%d\n",i); }
A.8
B.7
C.6
D.5
第4题:
有以下程序: main() {char s[]="159",*p; p=s; printf("%c",*p++);printf("%c",*p++); } 程序运行后的输出结果是 ______。
A.15
B.16
C.12
D.59
第5题:
有以下程序 main() { char s[]="159",*p; p=s; printf ("%c",*p++);printf("%c",*p++); } 程序运行后的输出结果是______。
A.15
B.16
C.12
D.59