源程序:
#include <stdio.h>
int mead(int *a,int *b){ int sum; sum=*a + *b; return sum;}
int main(){ int x,y; int *p=&x,*q=&y; int s; printf("请输入两个整数:"); scanf("%d%d",p,q); s=mead(p,q); printf("调用求和后的值为:%d ",s); return 1;}