What does this mean?👉 int [ ] a = New int [5] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What does this mean?👉 int [ ] a = New int [5]

Its a c# question asking to explain what this means

14th May 2020, 3:29 AM
Life
Life - avatar
4 Answers
+ 5
int[] a = new int[5] this means defining array with size of 5 with no entry of values.
14th May 2020, 4:51 AM
Shahghasi Adil
Shahghasi Adil - avatar
+ 5
14th May 2020, 5:45 AM
Shahghasi Adil
Shahghasi Adil - avatar
+ 1
it creates an int array that can hold 5 elements.
14th May 2020, 3:53 AM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
S Adil 🇦🇫 Size of Array 5 not 6.
14th May 2020, 5:44 AM
A͢J
A͢J - avatar