CBSE Computer Science - Revision Tour(Solved) CBSE Guess > eBooks > Class XII > CBSE Computer Science Arrays Solved Revision Tour By Mr. Ravi Kiran COMPUTER SCIENCE ARRAYS 3.b) An array MAT[20][10] is stored in the memory along the row with each element occupying 4 bytes of the memory. Find out the Base address and the address of element MAT[10][5] , if the location MAT[3][7] is stored at the address 1000. Solution: Children, Try this answer as an
assignment. DELHI 2005: 3.a) Write a function in C++ which accepts an
integer array and its size as arguments and exchanges the values of first half side elements with the second half side elements of
the array. Example : Solution:
3.b) An array Arr[15][35] is stored in the memory along the row with each of its element
occupying 4 bytes . Find out the Base address and the address of element Arr[2][5] , if the location Arr[5][10] is stored at the address 4000. Solution: Children, Try this answer as an
assignment. 3.d) Write a function in C++ to print sum of all values which either are divisible by 2 or divisible by 3 present in a 2D array passed as the argument of the function. Solution:
OUTSIDE DEHI 2005: 3.a) Write a function in C++ which accepts an integer array and its size as arguments and exchanges the values of first half side elements with the second half side elements of the array. Example : Solution: Refer Delhi 2005 Q.3a.
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|