1.
1 #include<stdio.h> 2 3 static int x,y,c,d; 4 5 void change(int *a,int *b); 6 void change1(); 7 8 int main() 9 { 10 int a,b; 11 12 scanf("%d%d",&a,&b); 13 14 change(&a,&b); 15 printf("%d %d ",a,b); 16 17 scanf("%d%d",&x,&y); 18 19 change1(x,y); 20 printf("%d %d ",x,y); 21 22 return 0; 23 } 24 25 void change(int *a,int *b) 26 { 27 int t; 28 29 t=*a; 30 *a=*b; 31 *b=t; 32 } 33 34 35 void change1() 36 { 37 int t; 38 39 t=x; 40 x=y; 41 y=t; 42 }
2.
1 #include<stdio.h> 2 3 void Delete(char s[]); 4 5 int main() 6 { 7 char s[]="abs16cac45ecXACWE"; 8 9 Delete(s); 10 11 printf("%s ",&s); 12 13 return 0; 14 } 15 16 void Delete(char s[]) 17 { 18 int i,j; 19 for(i=0;s[i]!='