Glenn
7/7/2011 7:28:00 AM
On 7 Jul., 06:21, Tim <t...@seemywebsite.please> wrote:
> Is there a difference between
>
> typedef struct SBob
> {
> int a;
> int b;
> int c;
>
> } SBob;
>
> volatile extern Sbob gBob;
>
> and
>
> typedef struct SBob
> {
> volatile int a;
> volatile int b;
> volatile int c;
>
> } SBob;
>
> extern Sbob gBob;
>
> ?
>
> Assuming that there's a peripheral out there named Bob, of course.
>
> --
> Tim Wescott
> Control system and signal processing consultingwww.wescottdesign.com
Hi Tim
The obvious - it ought to be the same.
Please note that there is also the group:
nntp://comp.lang.c
(and nntp://comp.lang.c++ that also has volatile)
br,
Glenn