有以下程序
#include <stdio.h>
char fun( char *c )
{
if ( *c<='Z' && *c>='A' )
*c -= 'A'-'a';
return *c;
}
main()
{
char s[81], *p=s;
gets( s );
while( *p )
{
*p =fun( p );
putchar( *p );
p++;
}
printf( "\n");
}
若运行时从键盘上输入OPEN THE DOOR<回车>,程序的输出结果是
A.OPEN THE DOOR
B.oPEN tHE dOOR
C.open the door
D.Open The Door