+ 1
Max size of declared arrays in C
Hello everyone. Whatâs the max size( in bytes) that declared arrays could have in C?
2 Answers
+ 2
These might provide you some insights. Despite the controversies from opinions
https://www.researchgate.net/post/What-is-the-maximum-size-of-an-array-in-C
https://stackoverflow.com/questions/9386979/what-is-the-maximum-size-of-an-array-in-c
+ 1
64 KiB is the minimum required by the standard (in a hosted environment)
A few MiB is the usual stack size
4GiB is the maximum rapresentable in a 32bit system
And then you have the actual physical memory (both Ram and virtual Ram)