• Post Reply Bookmark Topic Watch Topic
  • New Topic

why i am not getting "stack overflow" if i try to push many numbers  RSS feed

 
Santi no
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HERE IS MY CODE:
 
Tim Moores
Saloon Keeper
Posts: 4035
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can push as many numbers as the array is large - which is limited by the available memory. What size have you tried to allocate?

As an aside, you wouldn't get a stack overflow error, you would get an out of memory error if you tried to allocate too big an array.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!