What will expression salesiength return for an array sales[5][12] ?(a) 5 (b) 12 (c) 60 (d) 120
Answers
Answered by
0
Ans. As B[17] is a character array, the size of each element is 1 byte. ... (b) the ninth. (c) the tenth. (d) impossible to tell. Ans. (c) the tenth. 12. Write a ... 5 x 24. = 120. 23. For a multidimensional array B[9][15] find the total number of elements in B. .... Above statement declare an array sales that has 5 rows and 12 columns. 3.
Answered by
2
Option(c) is the correct answer to the given question .
Explanation:
- As the sales[5][12] is the two-dimensional array in which 5 represents the row of the sales array and 12 represented the column of the sales array.
- The salesLength return the 60 because to calculate the 2 d size we will multiply the row * column it gives the final length =5 *12=60.
- Also we will also use the predefined function to calculate the size of an array.
Therefore 60 is the correct answer .
Learn More:
- brainly.in/question/5169175
Similar questions
Social Sciences,
7 months ago
Physics,
7 months ago
Science,
7 months ago
Math,
1 year ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Physics,
1 year ago