传入指针参数
#include<stdio.h>
#include<stdlib.h>
void READ(int *a)
{
scanf("%d",a);
}
int main()
{
int a;
READ(&a);
printf("a=%d\n",a); int b,*c,*d;
scanf("%d",&b);
//*c = b; //error,c还未分配空间
c = &b;//right, c指向b
printf("c = %d\n",*c); d = (int*)malloc(sizeof(int));
*d = b;//right,已经分配空间
printf("d = %d\n",*d); }