1.

Which attribute can be used to get the size of an array?(a) Size.Array(b) Array.Size(c) Array_name.length(d) length.Array_name

Answer» Correct answer is (c) Array_name.length

Easy explanation - The array name is given of which the length have to be calculated. The array length is stored in the attribute length. Hence we access it using dot operator.


Discussion

No Comment Found

Related InterviewSolutions