Question: Exercise 2 - 2 D array manipulation Exercise Objectives Rows and column swapping, shifting, array transpose, etc. Problem Description Inside the Lab 8 folder,

Exercise 2-2D array manipulation
Exercise Objectives
Rows and column swapping, shifting, array transpose, etc.
Problem Description
Inside the "Lab8" folder, create a project named "Lab8Ex3". Use this project to write and run a C program that performs the following:
Initialize a char 2D array with:
ABC
DEF
G HI
Print the main and the secondary diagonals.
Output:
Main Diagonal: AEI.
Secondary: CE G.
Replace the values of the diagonals with (*) and print the array.
Output:
B*
D*F
*H
Exercise 2 - 2 D array manipulation Exercise

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!