Doctor 秦的博客#includevoidswap(int*p,int*p2);/*propotypesdeclaration*/voidmain(){inta1,a2,*ptr1,*ptr2;printf("Entertwointeger(separatebycommas):\n");scanf("%d,%d",&a1,&a2);/*entera1anda...
豆腐西红柿的博客当我们想写一个函数来实现数值交换的时候,很可能会有这样代码: #include <stdio.h> void swap(int x, int y) { int t = x; x = y; y = t; } int main() { int a=3, b=5; swap(a, b); printf("%d %d...