Pointer with return in C ?


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