函数的调用

来源:互联网 发布:查看linux防火墙状态 编辑:程序博客网 时间:2024/06/14 23:16
这里写代码片#include<stdio.h>void swap(int *x,int *y);main(){    int a,b;    scanf("%d%d",&a,&b);    swap(&a,&b);    printf("%d %d\n",a,b);}void swap(int *x,int *y){    int temp;    temp=*x;    *x=*y;    *y=temp;}

这里写图片描述

“`

原创粉丝点击