下面程序执行后的输出结果是( )。#include int main(){ int x[5] = { 2, 4, 6, 8, 10 }, *p, **pp; p = x, pp = &p; printf( "%d", *(p++) ); printf( "%3d", **pp ); return(0);}
A. 4 4
B. 2 4
C. 2 2
D. 4 6
查看答案
下面程序段执行后的输出结果是( )。char *s = "abcde";s += 2;printf( "%d", s );
A. cde
B. 字符'c'
C. 字符'c'的地址
D. 不确定
下面程序段执行后的输出结果是( )。char a[] = "language", *p;p = a;while ( *p != 'u' ){printf( "%c", *p - 32 ); p++;}
A. LANGUAGE
B. language
C. LANG
D. langUAGE
下面程序执行后的输出结果是( )。#include char cchar( char ch ){ if ( ch >= 'A' && ch <= 'Z' ) ch = ch - 'A' + 'a'; return(ch);} int main(){ char s[] = "ABC+abc=defDEF", *p = s; while ( *p ) { *p = cchar( *p ); p++; } printf( "%s", s ); return(0);}
A. abc+ABC=DEFdef
B. abc+abc=defdef
C. abcaABCDEFdef
D. abcabcdefdef
下面程序执行后的输出结果是( )。#include int main(){ char a[10] = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 }, *p = a + 5; printf( "%d", *--p ); return(0);}
A. 编译错误
B. a[4]的地址
C. 5
D. 3