Arithmetic operation using pointers in c
Answers
Answered by
0
#include <stdio.h>
int main()
{int first, second,*p,*q, sum;
printf("Enter two integers to add\n");
scanf("%d%d",&first,&second);
p =&first;
q =&second;
sum =*p +*q;
printf("Sum of entered numbers = %d\n",sum);
return0;}
int main()
{int first, second,*p,*q, sum;
printf("Enter two integers to add\n");
scanf("%d%d",&first,&second);
p =&first;
q =&second;
sum =*p +*q;
printf("Sum of entered numbers = %d\n",sum);
return0;}
Answered by
4
ANSWER IS IN THE IMAGE
Attachments:
Similar questions