Computer Science, asked by prashantgawai627, 1 month ago

A c program for addition of two number using pointer.Show Flowchart and output

Answers

Answered by javedalmas09
1

Answer:

C program to add two numbers using pointers

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; }

Attachments:
Similar questions