How are character constants stored in memory map

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saranraj17
    New Member
    • Mar 2010
    • 1

    How are character constants stored in memory map

    in c language how the character constant are stored in memory map.. in need very brief explanation . so kindly help for me
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    They will be somewhere in the data or constant data segement depending on the platform.

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      How character constants are stored in memory is implementation dependent. There may well be a different answer for each compiler. Are you looking for an answer that is generally true for most implementations ; or are you looking the answer for a specific implementation? If the latter, then you need to tell us which implementation.

      Banfa's references to data and constant data segments are only generally true.

      Comment

      Working...