+ 1
Is there any limit to declare size of an array??
What maximum size can i give to an array?? like ; my_array[154628050] //what max size can i provide here? Is it dependent on the machine word length??
2 Answers
+ 1
Don't exactly know the maximum limit, but if you declare a very large array, you may get segmentation fault.
0
If I am not mistaken, the array size is an int value.
The maximum int value is 2^32 which is around 2 Billion(if unsigned)