2D ARRAY
(FOR CLASS XI AND XII)
LIST OF QUESTIONS
Q1. Write a user-defined function AddEnd4(int A[][4],int R,int C) in C++ to find and display the sum of all the values, which are ending with 4 (i.e., unit place is 4). For example if the content of array is: The output should be 42 |
download Solution |
Q2. Write a user defined function in C++ to find the sum of both left and right diagonal elements from a two dimensional array. |
download Solution |
Q3. Write a user-defined function swap_row(int ARR[ ][3],int R,int C) in C++ to swap the first row values with the last row values: For example if the content of the array is: Then after function call, the content of the array should be: |
download Solution |
download Solution |
download Solution |
download Solution |
download Solution |
download Solution |
download Solution |
download Solution |