Develop menu- driven c program to
perform following pointer
operations:
1.exchange(swap) values of two
variables
2. add two numbers
Answers
Answered by
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