Vector Max size

Revision en2, by Mohsina_Shaikh, 2022-08-21 12:06:11

Can anyone please explain why my program crashes without mentioning any error If I try to create vector of size 10^9 in c++.Anyway If I decrease the size of vector let's suppose to something like 10^7 and 10^6 it works fine

Tags vector, c++, general doubt

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Mohsina_Shaikh 2022-08-21 12:06:11 102
en1 English Mohsina_Shaikh 2022-08-21 12:00:44 140 Initial revision (published)