Computer Science, asked by sanyaabraham398, 5 hours ago

Develop menu- driven c program to

perform following pointer

operations:

1.exchange(swap) values of two

variables

2. add two numbers​

Answers

Answered by singhanshuman1020
0

Answer:

void swap(int *a, int *b) {

int temp = *a;

*a = *b;

*b = temp;

}

int add(int *a, int *b){

int c = *a + *b;

return c;

}

Hope following functions helps you to do these operations with pointers.

Mark as brainliest, it really motivates!

Similar questions