Write a program in C language for addition of two polynomials using Pointers
Answers
Answered by
2
Answer:
#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 the numbers = %d\n", sum);
return 0;
}
Similar questions
English,
2 months ago
English,
5 months ago
Computer Science,
5 months ago
Chemistry,
11 months ago
Math,
11 months ago