- A No solution exist.
- B Solution need 2 extra variables
- C Solution exist without any extra variables
- D Solution need 1 extra variable
- Share this MCQ
Answer:
C
1.
Share this MCQ
Solution c Solution exist without any extra variables
1.
void swap(int a, int b) { int c; c=a; a=b; b=c; }2.
void swap (int a, int b) { a=a+b; b=a-b; a=a-b; }Solution2 is the best solution since no extra variable is required. Click me to Read more Question & Answer of Pointer in C Language
Share this MCQ