Module 5
Module 5
1. Define a function `swap(int *a, int *b)` that swaps the values of two integers
23 using pointers.
2. In the `main()` function, take two integer inputs from the user and call the
`swap()` function.
3. Display the values before and after swapping.