#include<conio.h>
#include<stdio.h>
int main()
{
int a,b,*p,*q;
p=&a;
q=&b;
printf("enter the value of a");
scanf("%d",&a);
printf("enter the value of b");
scanf("%d",&b);
printf("the ans is %d",*p+*q);
}
#include<stdio.h>
int main()
{
int a,b,*p,*q;
p=&a;
q=&b;
printf("enter the value of a");
scanf("%d",&a);
printf("enter the value of b");
scanf("%d",&b);
printf("the ans is %d",*p+*q);
}
No comments:
Post a Comment