CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Posts
    31

    Thumbs up Easyquestion about array

    How many elements of an array can I define?
    Thank you

  2. #2
    Join Date
    Apr 2009
    Posts
    598

    Re: Easyquestion about array

    What is your OS? Your compiler?

  3. #3
    Join Date
    Jan 2009
    Posts
    1,689

    Re: Easyquestion about array

    Usually 18446744073709551615, if you are on an old 32-bit machine/compiler then usually 4294967295.

  4. #4
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    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
  •  





Click Here to Expand Forum to Full Width

Featured