下面的程序main(){char c1,c2;c1='a';c2='b';c1=c1-32;c2=c2-32;printf('%c %c',c1,c2);}运行结果为
A: A B
B: 65 66
C: A 66
D: 65 B
A: A B
B: 65 66
C: A 66
D: 65 B
举一反三
- 下面程序的运行结果为( )。#include [stdio.h]void main(){ char c1,c2; c1='a'; c2='b'; c1=c1-32; c2=c2-32; printf("%c %c",c1,c2);}
- 以下程序的输出结果是( )char c1, c2;c1=65; c2 = 65 + 32 + 1 ;printf ( "%c, %c ", c1, c2 ) ; A: a, B B: A, B C: A, b D: a, b
- #include[stdio.h] void main( ) { char c1,c2; c1='a'; c2='b'; c1=c1-32; c2=c2-32; printf(“%c,%c”,c1,c2); }
- 写出下列程序的运行结果#include"stdio.h"voidmain(){charc1=’a’,c2=’b’;printf("c1=%c,c2=%c",c1,c2);printf("c1=%d,c2=%d",c1,c2);c1=c1-32;c2=c2-32;printf("c1=%c,c2=%c",c1,c2);printf("c1=%d,c2=%d",c1,c2);}
- 以下程序段运行的输出结果是() #include [stdio.h][br][/br] main() { char c1,c2; c1='C'-2; c2=97; printf("%d,%c",c1,c2); } A: 65,97 B: A,97 C: A,a D: 65,a