#include<stdio.h>
#include<string.h>
main()
{
int y,x;
printf("Enter x and y to perform arithmetic operations on it.\n");
scanf("%d",&x);
scanf("%d",&y);
int *p,*q;
p=&x;
q=&y;
int a,b,c,d;
a=(*p+*q);
b=(*p)-(*q);
c=(*q)*(*p);
d=(*p)/(*q);
printf("Addition=%d Subtraction=%d Multipication=%d Divide=%d",a,b,c,d);
}
Output [Click to enlarge]:

I think there is no need of defining z there…
Hey San, thanks for pointing that out, removed z from the initialized variable list! 🙂
Sir/ mam
I have one doubt?
How can solve the”declaration is not allowed here” error.
PLZZ told quick