1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with const keyword

Discussion in 'C' started by illuminatus89, Sep 2, 2010.

  1. illuminatus89

    illuminatus89 New Member

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Through my knowledge, I know that by declaring a variable as 'const', its stored in read only memory and at the same time I found that a const variable's value can be changed using pointers. How is it possible?
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    Non standard C compilers and especially Turbo C compiler's allow this but not any recent compilers.
     

Share This Page