Q:

To define a single instance of a const variable, we use the keyword extern on both its definition and declaration(s)

0

To define a single instance of a const variable, we use the keyword extern on both its definition and declaration(s)

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

// file_1.cc defines and initializes a const that is accessible to other files
extern const int bufSize = fcn();
// file_1.h
extern const int bufSize; // same bufSize as defined in file_1.cc

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now