Volatile variable

Discussion in 'C Programming' started by idkfaidkfaidkfa@gmail.com, Sep 27, 2008.

  1. Guest

    I've found this code:

    void function(void) {
    volatile unsigned long * pAdd, *pCntl;
    ........
    for(i = 0, pCntl = &VICPRIORITY0, pAdd = &VICTADDR0; i < 32; ++i)
    {
    *pCntl++ = *pAdd++ = 0;
    }
    }

    It's the first time that i've found volatile variable: what does it
    mean?if pointers are not declared as volatile, what happens?
    thanks in advance
    , Sep 27, 2008
    #1
    1. Advertising

  2. Ian Collins Guest

    wrote:

    > It's the first time that i've found volatile variable: what does it
    > mean?if pointers are not declared as volatile, what happens?


    What does your text book or a scan through the recent history of this
    group tell you?

    --
    Ian Collins.
    Ian Collins, Sep 27, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anh-Tu Vo
    Replies:
    4
    Views:
    498
    Ron Samuel Klatchko
    May 27, 2004
  2. ben
    Replies:
    5
    Views:
    591
    Ulrich Eckhardt
    Jan 11, 2005
  3. nickptar
    Replies:
    3
    Views:
    348
    Christian Bau
    Dec 27, 2005
  4. mahdert
    Replies:
    3
    Views:
    394
    Eric Sosman
    Mar 24, 2010
  5. aleksa

    Should this static variable be volatile?

    aleksa, May 16, 2011, in forum: C Programming
    Replies:
    4
    Views:
    1,037
    Tim Rentsch
    May 19, 2011
Loading...

Share This Page