If this is a complete translation unit, what can be said about the variable "MaxEntries"?

Q

const int MaxEntries = 10;
extern int entries[MaxEntries];

If this is a complete translation unit, what can be said about the variable "MaxEntries"?

1) It can only be used within the translation unit shown in the sample.
2) It cannot be used as a case value in a switch statement.
3) It becomes accessible to other translation units that reference it
by using the extern specifier.
4) It can be used in preprocessor directives.
5) It cannot be used to specify bounds in an array declaration.

✍: Guest

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

2012-04-24, 2626👍, 0💬