WRITE A PROGRAM TO ADD THE TWO VALUES THROUGH FUNCTION TO POINTER.
WRITE A PROGRAM TO ADD THE TWO VALUES THROUGH FUNCTION TO POINTER.
#include<conio.h>
#include<stdio.h>
void add(int*,int*);
int main()
int a=5,b=4;
int *y,*z;
y=&a,z=&b;
add(&a,&b);
getch();
}
void add(int*l,int*m)
{
int c=0;
c=(*l+*m);
printf("%d",c);
}