题目内容

语句的int*p=&k定义于指针P,于这个语句等效的语句序列是( )

A. int*p;p=&k
B. int*p;p=k
C. int*p;*p=&k
D. int*p;*p=k

查看答案
更多问题

有如下头文件 int f1(); static int f2(); Class MA{ public int f3(); static int f4();(静态函数) };在所描述的函数中,具有隐含的this指针的是( )

A. f1
B. f2
C. f3
D. f4

有如下程序 #include using namespace std; Class myclass{ public: MyClass(){++count;} ~MyClass(){--count;} static int getcount(){return count;}private static int count;};int MyClass::count=0;int main(){ Myclass obj; cout<

A. 121
B. 232
C. 221
D. 122

已知数组A和指针p定义为:int A[10][10],*p=&A[0][0];下列不是同一个数组元素的是______。

A[2][1]
B. *(*(A+2)+1)
C. *(p+21)
D. *(*(p+2)+1)

已知数组a和指针p定义为:int a[10],*p=a+3;下列不表示数组元素a[5]的是( )

A. *(a+5)
B. *(p+5)
C. *(p+2)
D. p[2]

答案查题题库