Largest size of array

What is the largest size of array possible in C++ ??

Hello @nidhigupta847

10^7…10^8(rare) size array u can make of boolean datatype

1 Like

and does maximum size differ for global array and local array ?

yeah in global scope(upto 10^7 or 8) u can declare large size array compared to local scope (uptp 10^6).

1 Like