C Programs Add Two Numbers using Pointers

      No Comments on C Programs Add Two Numbers using Pointers
#include<stdio.h>
#include<conio.h>
void main()
{
 int x,y, *a,*b,z;
 clrscr();
 printf("Enter First Number:- ") ;
 scanf("%d",&x);
 printf("Enter Second Number:- ");
 scanf("%d",&y);
 a=&x;
 b=&y;
 z=*a+ *b ;
 printf("Sum of Two Numbers is= %d",z);
 getch();
}

OUTPUT:-

pointer

Leave a Reply

Your email address will not be published. Required fields are marked *