This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Does dereferencing a volatile pointer produce a volatile element?


Hi Everyone,

As an example:

    int a[10];
    volatile int* b = a;

    for(unsigned i=0; i<10; i++)
        *b++ = 0;

When the dereference occurs through b, does it produce a volatile element?

Thanks in advance.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]