+ 1

Max size of declared arrays in C

Hello everyone. What’s the max size( in bytes) that declared arrays could have in C?

16th Jan 2022, 6:11 AM
Rabé Labo Mahaman Laouali
Rabé Labo Mahaman Laouali - avatar
2 Answers
16th Jan 2022, 6:35 AM
Ipang
+ 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)
16th Jan 2022, 7:12 AM
Angelo
Angelo - avatar