+ 1

if we will not declare how many elememt an array will story (int a[];)than it will hold unlimited value?

26th Dec 2015, 4:06 AM
Akarsh
Akarsh - avatar
1 Answer
+ 1
no. you have to specify the number of elements unless you are doing this: int arr [] = {1,2,3}; it checks to see how many items are in the curly braces and assigns that as the size of the array
19th Feb 2016, 11:07 PM
Jonathan Iannacone