填空题 函数swap的功能是:交换两个int类型的数据;请填空。
   void swap(int*x,int*y)
   {  int t;
      t=*x; 1;  *y=t;
   }    
   main()
   {  int a,b,*P,*q;
      a=100;b=200;
      P= 2;q= 3;
      printf("before:a=/%d,b=/%d\n",a,b);
      swap(p,q);
      printf("after:  :a=/%d,b=/%d\n",a,b);
  • 1、
【正确答案】 1、*x=*y &a &b    
【答案解析】