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
// You have been given an array/list(ARR) of size N. You need to swap every pair of alternate elements in the array/list. You don't need to print or return anything, just change in the input array itself.
#include<stdio.h>
int main(){
int arr[100],n,i,temp;
printf("ENTER NUMBER OF ELEMENTS OF AN ARRAY : ");