CBSE Guess > Papers > Important Questions > Class XII > 2010 > Computer Science > Computer Science By Ravi Kiran CBSE CLASS XII Q.3. Write a function in C++ which accepts a 2D array of integers and its size as arguments and displays the elements of middle row and the elements of middle column. [Assuming the 2D Array to be a square matrix with odd dimension i.e., 3x3, 5x5, 7x7 etc…] Example : If the array content is Solution: void accept(int a[ ][ ],int size) DELHI 2006 Q.1. Write function in C++ which accepts an integer array and size as arguments and assign values into a 2D array of integers in the following format : Q.2. An array MAT[30][10] is stored in the memory along column wise with each element occupying 8 bytes of the memory. Find out the Base address and the address of element MAT[20][5] , if the location MAT[3][7] is stored at the address 1000. Solution: Children, Try this answer as an assignment. Paper By Mr. Ravi Kiran |