You are on page 1of 1

ICM Assignment 01 [Deadline: 24

Q1

th

May, 2013]

Assuming following declarations for the scores array and base address to be your registration number fill in the table given below with element addresses. a) int scores [9]; Element scores[0] scores[1] scores[2] Address Element scores[3] Scores[4] Scores[5] Address Element scores[6] scores[6] scores[8] Address

b) double scores[3][7]; Element scores[0][0] scores[0][1] scores[0][2] scores[0][3] scores[0][4] scores[0][5] scores[0][6] Q2 Define overloaded functions fillArray to initialize following type of arrays with user inputs: int, short and double. Q3 Define overloaded void functions average for the following type of arrays: int, short and double. This function should have two reference parameters to write average value and standard deviation of the array elements respectively. [standard deviation: http://en.wikipedia.org/wiki/Standard_deviation] Q4 Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication. Address Element scores[1][0] scores[1][1] scores[1][2] scores[1][3] scores[1][4] scores[1][5] scores[1][6] Address Element scores[2][0] scores[2][1] scores[2][2] scores[2][3] scores[2][4] scores[2][5] scores[2][6] Address

You might also like