MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the following C functionvoid swap ( int x, int y ){int tmp;tmp = x;x= y;y = tmp;}In order to exchange the values of two variables a and b: |
| A. | Call swap (a, b) |
| B. | Call swap (&a, &b) |
| C. | swap(a, b) cannot be used as it does not return any value |
| D. | swap(a, b) cannot be used as the parameters passed by value |
| Answer» E. | |