// demo1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
int i ;
void ch (int* a, int* b){
int p ;
p = *a ;
*a = *b ;
*b = p ;
}
int main()
{
int i = 3 ;
int j = 5 ;
ch(&i,&j) ;
printf("%d\n",i ) ;
return 0;
}
标签:main,ch,console,point,int,C语言,理解,include,指针 From: https://blog.51cto.com/u_16034393/6153316