0
What is the max size an array has?
2 Answers
+ 1
There *are* limits, though the limits might not be of practical relevance for a beginner programmer or in everyday programming.
Every operating system(OS) has a limited address space for every program that is defined by the maximum of memory that can be addressed by the OS (or the machine itself, if you don't have an OS).
A 32bit OS can address less memory (not more than 4GB) than a 64bit OS (lots more than 4GB). Also, long before this becomes relevant, the OS might not fulfill a dynamic memory request (via new operator or local variable) as a memory request might break the size limits of the heap or the stack. Furthermore, a physical machine has a limit to its physical memory. Consequencially, an OS will very likely deny a dynamic request, if it exceeds (physical memory + swap space) - (OS memory footprint + memory needed for other programs).
That said, these limits rarely become relevant and might mostly be relevant in scientific and high-end programming. So it's in 95% of the cases not relevant (wild guess).
0
it can be as big as u want it to be