Lab Work 8.2 - C Language
Lab Work 8.2 - C Language
Lab Work
Chapter - 8
Array in Detail
Output:
Average of an Array: 3.88
Write a Program to perform the addition operation of two 2D arrays & store it in
another array. Keep in mind that both array sizes must be the same.
For example,
Input:
Enter the array's row size: 3
Enter the array's column size: 3
Output:
Array C is:
5 10 3
8 11 12
11 9 10
Write a Program to find the sum of diagonal elements from a given 2D array.
For example,
Input:
Enter the array's row & column size: 3
Output:
The sum of diagonal elements of an Array: 13
Write a Program to print and find the sum of all boundary elements from a given 5x5
2D array.
Q.4
For example,
Input:
Output:
24163
9 7
8 5
3 1
23957