In C, the expression w[6][17] indicates that w is an array with 6 rows and 7 col
ID: 3865329 • Letter: I
Question
In C, the expression w[6][17] indicates that w is an array with 6 rows and 7 columns. True False The results of calculations on the elements of an array in C cannot themselves be stored in an array. True False In two-dimensional arrays, the column size is the first number written: that is, x[4][5] is an array with 4 columns and 5 rows. True False Individual elements is an array can be accessed using the sub script position: that is, writing the code x[n], where n is an integer, accesses the (n + 1)^th elements in an array. True False All arrays in the C programming language start with the subscript I. True False Which C statement can be used to declare an array? char buff{200}: double g[5][6]: Int wind[4]: array g = {0}: The following partial program will: double table[10][2]. sum = 0.0: int i, ndata = 10: for(i = 0, i lessthanorequalto ndata - 1: i++) sum = table[i][2];Explanation / Answer
Answer 1) True, w[6][7] is an array with 6 rows and 7 columns. It is a multidimensional array in which we specify the number of rows first and than the number of columns.
Answer 2) True
Answer 3) False, the size of row is written first and than the column size is specified.
for example : x[4][5] is an array with 4 rows and 5 columns.
Answer 4) False, beacuse an array subscript starts with the zero position, so it won't access the (n+1)th element
Answer 5) False, they start with subscript 0 .
Answer 6) array g = {0}; can not be used as here curly braces are used but in array we use square brackets i.e. [ ] .