Question: please help me write in C Q2. (20 pts) Write a program to create a 2D array of 4x4, which takes random values with in
please help me write in C
Q2. (20 pts) Write a program to create a 2D array of 4x4, which takes random values with in the range [-10... 10), th en sort the rows in increasing order of the sum of elements on each row. Example: 4 -8 -4 4 (sum= -4) -6 4. 2-10 4. -2 0 -1 (sum= 1) Result: 4 -8 -4 4 -6 4 2-10 (sum=-10) 4 -2 0 -1 -7 -4 5 8 (sum=2) -7 -4 01 5 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
