ARRAY | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

ARRAY

Fill in the blanks to retrieve the number of elements in an array called "test". test.

28th Aug 2018, 8:04 AM
Walter Mugo
Walter Mugo - avatar
1 Answer
0
int[] test = new int[] { 1, 2, 3, 4 } test.Length // returns the number of elements in an array, this will return a value of 4
29th Aug 2018, 2:24 AM
John
John - avatar