printf(\ }
11、
char cchar(char ch)
{ if (ch>=‘A’&&ch<=‘Z')
ch=ch-‘A'+‘a';
return ch; }
void main()
{ char s[]=\ while(*p) { *p=cchar(*p); p++; }
printf(\ }
12、
void main( )
{ int a[5]={2,4,6,8,10},*p,* *k; p=a; k=&p;
printf(\ printf(\ }
13、
funa(int a,int b ) { return a+b;} funb(int a,int b ) { return a-b;} sub( int (*t)( ),int x,int y ) { return ((*t)(x,y));} void main( ) { int x ,(*p)( ); p=funa; x=sub(p,9,3); x+=sub(funb,8,3); printf(\
}
48
14、
void main( )
{ char *s=\int v[4]={0,0,0,0} ; int k,i;
for(k=0;s[k];k++) { switch(s[k]) { case '1':i=0; case '2':i=1; case '3':i=2; case '4':i=3; } v[i]++; }
for(k=0;k<4;k++) printf(\}
void space(char *str) { int i ,t ; char ts[81];
for(i=0,t=0 ;str[i]!='\\0' ;i+=2)
if(! isspace(*(str+i))&&(*(str+i)!='a')) ts[t++]=toupper(str[i]) ; ts[t]='\\0' ; strcpy(str ,ts) ; }
void main( )
{ char s[81]={\ space(s); puts(s); }
#include
sub1(char a ,char b) { char c ; c=a ;a=b ;b=c ;} sub2(char * a ,char b) { char c ; c=*a ;*a=b ;b=c ;} sub3(char * a ,char *b){ char c ; c=*a ;*a=*b ;*b=c ;} void main()
49
15、# include \
16、