以下定义常量数据成员和常量函数成员的语句正确的是()。

以下定义常量数据成员和常量函数成员的语句正确的是()。

A.constinti;constvoidf();

B.inticonst;voidf()const;

C.constinti;voidf()const;

D.inticonst;constvoidf();

正确答案:C

猜你喜欢