C Program to find the addition of two numbers using call by reference
#include<stdio.h>
#include<conio.h>
int sum(int *,int *);
void main()
{
int a,b;
clrscr();
printf("Enter any two numbers for Addition\n");
scanf("%d %d",&a,&b);
printf("%d",sum(&a,&b));
getch();
}
int sum(int *x,int *y)
{
return(*x + *y);
}
OUTPUT
Enter any two numbers for Addition23 45
68
------------------------------------------------------------------------------------------------------------