a) Swaps two elements of an array given elements
b) Swaps two arrays
c) Swaps two elements given indices of elements
d) Swaps same elements of the array if required
Meghna MittalBegginer
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
b
Explanation: swap() function is used to swap elements of two array classes provided the size of both arrays classes are same.