|
-
November 23rd, 2010, 08:54 AM
#1
Easyquestion about array
How many elements of an array can I define?
Thank you
-
November 23rd, 2010, 08:59 AM
#2
Re: Easyquestion about array
What is your OS? Your compiler?
-
November 23rd, 2010, 09:09 AM
#3
Re: Easyquestion about array
Usually 18446744073709551615, if you are on an old 32-bit machine/compiler then usually 4294967295.
-
November 23rd, 2010, 09:12 AM
#4
Re: Easyquestion about array
Standard stack arrays are typically limited by the size of the stack, which is typically a few MB. Vectors or dynamic arrays on the heap can be much larger, in theory up to the size of the process address space. In practice, memory fragmentation typically reduces the effective maximum size to about half that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|