Addition of pointers in c program
Pointer: A pointer can be declare as a ( * ) Symbol. Now Bellow Can Be Addition Of Two Variable Pointers Example Program With Outputs.
Program
#include<stdio.h>
int main()
{
int *a,*b,c,first,second;
printf("enter the two numbers :\n");
scanf("%d%d",&first,&second);
a=&first;
b=&second;
c=*a+*b;
printf("the Sum Of Two Pointers : %d",c);
}
Output
No comments:
Post a Comment