Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC++const correctnessSingle-choice MCQ

A class has the member function below. What happens at compile time?

struct Counter { int n = 0; int get() const { return ++n; } };