Detailed Print – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
siteicon
Solved Problem#CPP#6997

Problem Statement - 03B-2019S-C2

Write definition for a function ColSwap(int A[4][4]) in C++, which swaps the contents of the first column with the contents of the third column.

For example:

ORIGINAL ARRAY A
10 15 20 25
30 35 40 45
50 55 60 65
70 75 80 85

 

CHANGED ARRAY A
20 15 10 25
40 35 30 45
60 55 50 65
80 75 70 85

NOTE:

  • DO NOT DISPLAY the Changed Array contents.
  • Do not use any other array to transfer the ontents of array A.

Solution

Click to open popup