Question: Q1: Define a 2D array (Assuming the 2D Array to be a square matrix with odd dimension i.e. 3x3, 5x5, 7x7 etc.). The program

Q1: Define a 2D array (Assuming the 2D Array to be a


Q1: Define a 2D array (Assuming the 2D Array to be a square matrix with odd dimension i.e. 3x3, 5x5, 7x7 etc.). The program contains the following A function that fills the array with random numbers ranged between [ -20 to 20] which accepts a 2D array of integers and its size as arguments. Afunction that prints the elements of the matrix. A function that prints the sum of each diagonal of the array A function that returns and print the maximum prime number if exists in the array.

Step by Step Solution

3.50 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer C program i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!