数组遍历

#include<stdio.h>
  
  void swop(int *x, int *y)
  {       
          int t; 
          t = *x;
          *x = *y;
          *y = t;
  }
  int main(void)
  {       
         int a = 3;
         int b = 4;
         int *x = &a;
         int *y = &b;
         swop(x,y);
         printf("%d %d",*x,*y);

        return 0;
 }
原文地址:https://www.cnblogs.com/zxg99/p/6575791.html