网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
( 18 ) 下列语句中,错误的是
A ) const int buffer=256;
B ) const double *point;
C ) int const buffer=256;
D ) double * const point;
参考答案
更多 “ ( 18 ) 下列语句中,错误的是A ) const int buffer=256;B ) const double *point;C ) int const buffer=256;D ) double * const point; ” 相关考题
考题
若有以下类W说明,则函数fConst的正确定义是()。 class W { int a; public: void fConst(int ) const; };A.void W::fConst(int k ) const { k = a; }B.void W::fConst(int k ) const { k = a++; }C.void W::fConst(int k ) const { cin>> a; }D.void W::fConst(int k ) const { a = k; }
考题
下面关于const指针的语句中,正确的是()。A.int a=10; const int *p=a; *p=20;B.int a=10; int *const p= a; *p=20;C.int a=10, b=20; int *const p=a; p=b;D.int a=10, b=20; const int *const p=a; p=b;
考题
20、在下列函数原型中,可以作为类AA构造函数的是()。A.void AA(int);B.AA(int);C.int AA();D.AA(int) const;
热门标签
最新试卷