CBSE Guess > Papers > Important Questions > Class XII > 2010 > Computer Science > Computer Science By Ravi Kiran CBSE CLASS XII Q. 2. An array Arr[50][10] is store in the memory along the row with each element occupying. bytes. Find out the Base address of the location Arr[20][50], if the location Arr[10][25] is stored at the address 10000. Solution: Children, Try this answer as an assignment. Q. 3. Write a function in C++ to print the product of each row of a two dimensional array passed as the arguments of the function Example: if the two imensional array contains DELHI 2007 Q. 1. Write function in C++ which accepts an integer array and size as arguments and replaces elements having odd values with thrice its value and elements having even values with twice its value. Example : if an array of five elements initially contains elements as 3, 4, 5, 16, 9 Solution: void manipulate (int a[ ],int size) Q. 2. An array Array[20][15] is stored in the memory along the column with each element occupying 8 bytes. Find out the base address of the element Array[2][3] if the element Array[4] [5] is stored at the address 1000. Solution: Given Data: Aray [20][15] W=8 B=? R=20 C=15 Lr = 0 Lc = 0 Paper By Mr. Ravi Kiran |