Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC++ODR and linkageSingle-choice MCQ

A `const` namespace-scope variable and a `constexpr` namespace-scope variable differ in default linkage. Which statement is correct?

const int a = 10; // file scope constexpr int b = 20; // file scope extern const int c; // ?