c-string consts in stack or heap?

Discussion in 'C++' started by Igor Yalovecky, Aug 29, 2010.

  1. Igor Yalovecky

    Igor Yalovecky New Member

    Joined:
    Aug 29, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    [src]tmpfile = "/tmp/somefile.tmp";[/src]

    I think what memory for such object allocated by compiler, so its in stack, or even in over special area for static vars, but i may be wrong. Ooh, where placed area for static vars?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice