1. Explain with a suitable example how a function can return multiple values using arguments and the return statement. In what circumstances could one still need the return statement? 2. If the...


1. Explain with a suitable example how a function can return multiple values using arguments and the return statement. In what circumstances could one still need the return statement?


2. If the pointer p points to the array arr, explain how pointer arithmetic works better with p than with arr.


3. How can two pointers be swapped using a function? Why can’t the standard technique of using two pointers as arguments work here?


4. Explain how the use of const differs between the declaration of a variable in main and a parameter of a function.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here