Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Maximum limit of char array?

Maximum limit of char array?

Scheduled Pinned Locked Moved C / C++ / MFC
data-structuresquestion
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jannathali
    wrote on last edited by
    #1

    hai, Is there any maximum limit for the char array Thanks in Advance

    CPalliniC C R 3 Replies Last reply
    0
    • J jannathali

      hai, Is there any maximum limit for the char array Thanks in Advance

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      jannathali wrote:

      Is there any maximum limit for the char array

      What do you mean, exactly?

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      J 1 Reply Last reply
      0
      • CPalliniC CPallini

        jannathali wrote:

        Is there any maximum limit for the char array

        What do you mean, exactly?

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        J Offline
        J Offline
        jannathali
        wrote on last edited by
        #3

        Is there any limit for the array size. i.e char a[Max_Value]; Is there a limit for this value Or i can give any big value like char a[40000]; etc

        _ CPalliniC 2 Replies Last reply
        0
        • J jannathali

          Is there any limit for the array size. i.e char a[Max_Value]; Is there a limit for this value Or i can give any big value like char a[40000]; etc

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          If you're declaring it local to a function, the size is limited by the available stack space. If you're declaring it globally, the size is limited by the data section size.

          «_Superman_» I love work. It gives me something to do between weekends.
          Microsoft MVP (Visual C++)

          1 Reply Last reply
          0
          • J jannathali

            Is there any limit for the array size. i.e char a[Max_Value]; Is there a limit for this value Or i can give any big value like char a[40000]; etc

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            You may have such big values (why don't you try?). :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            • J jannathali

              hai, Is there any maximum limit for the char array Thanks in Advance

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              In most of the cases (but there are some few exceptions), when you have to ask yourself such a question, it probably means that you have taken a bad design decision.

              Cédric Moonen Software developer
              Charting control [v3.0] OpenGL game tutorial in C++

              1 Reply Last reply
              0
              • J jannathali

                hai, Is there any maximum limit for the char array Thanks in Advance

                R Offline
                R Offline
                Rajesh R Subramanian
                wrote on last edited by
                #7

                Hi, See here: http://msdn.microsoft.com/en-us/library/s0z0bbfe%28VS.80%29.aspx[^]

                “Follow your bliss.” – Joseph Campbell

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups