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
Post a Comment