Your manager has asked you to integrate an existing project

Q

Scenario:-
Your manager has asked you to integrate an existing project
with an external timer. Her requirements include adding a global
variable whose contents can be only read by the software
but whose value will be continuously updated by the hardware clock.

Referring to the above scenario, which one of the following
variable declarations satisfies all the requirements?
1) extern volatile clock;
2) extern const volatile long clock;
3) extern long clock;
4) extern const mutable long clock;
5) extern mutable long clock;

✍: Guest

A
(This question has not been answered yet. If you know the answer, please share it in a comment below.)

2012-04-26, 2747👍, 0💬