You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an array arr[] of N integers, the task is to swap the first and the second element then the third and the fourth element then the fifth and the sixth and so on.
Print the final array after all the valid operations.