#include<stdio.h>
#include<conio.h>
int sum(int *x,int *y);
main()
{
int a,b,c;
clrscr();
printf("Enter first =");
scanf("%d",&a);
printf("Enter 2nd =");
scanf("%d",&b);
c=sum(&a,&b);
printf("\n ANswer=%d",c);
getch();
}
int sum(int *x,int *y)
{
int z;
z= *x + *y;
return z;
}
No comments:
Post a Comment