c - Right syntax to make contents of an array volatile? -


i vaguely remember order of volatile keyword has influence on wether want pointer array volatile or contents itself. if want content volatile, need write:

volatile short array[]; 

or

short volatile array[3]; 

either do. difference between

short volatile * ptr; /* pointer volatile short */ 

and

short * volatile ptr; /* volatile pointer short */ 

that matters.

const behaves same way.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -