Vidyalelo
C++ Programming · Q612

C++ miscellaneous

Programming · C++ Programming · question 612

Q612

What is the use of swap() function in array class?

A.
Swaps two elements of an array given elements
B.
Swaps two arrays
Answer
C.
Swaps two elements given indices of elements
D.
Swaps same elements of the array if required

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board