Pointer with function in C ?


Q) W.A.P to initialize pointer with function
 #include<stdio.h>
 #include<conio.h>
 sum(int*,int*);
 void main()
 {
 int a,b,c;
 printf(“Enter two no”);
 scanf(“%d%d”,&a,&b);
 sum(&a,&b);
 getch();
 }
 void sum(int *x, int *y)
 {
 int *p;
 *p=*x+*y;
 printf(“%d”,*p);
 }