网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
假定有定义“intb[10];int*pb;”,则不正确的赋值语句为()。
A
pb=b
B
pb=&b[0]
C
pb=newint
D
pb=b[5]
参考答案
参考解析
解析:
暂无解析
更多 “单选题假定有定义“intb[10];int*pb;”,则不正确的赋值语句为()。A pb=bB pb=&b[0]C pb=newintD pb=b[5]” 相关考题
考题
设有C语言变量说明“static int a[][2]={{1,2),(3,4}};int *pa,(*pb)[2];”,则执行语句“pa=pb=”,则执行语句“pa=pb=a[0][0];”后,(*(pa+1))的值为(31)。A.2B.3C.a[0][1]D.a[1][0]
考题
如下程序执行后的输出结果是【】。include using namespace std; class Base { public:
如下程序执行后的输出结果是【 】。include <iostream>using namespace std;class Base{public:Base(int x,int y){a=x;b=y;}void Show(){cout<<"Base: "<<a<< ',' <<b<<" ";}private:int a,b;};class Derived : public Base{public:Derived(int x, int y, int z) : Base(x,y),c(z) { }void Show(){cout<<"Derived:"<<c<<end1;}private:int c;};int main(){Base b(100,100),*pb;Derived d(10,20,30);pb=b;pb->Show();pb=d;pb->Show();return 0;}
考题
为使程序的输出结果为: Base:: fun 那么应在下列程序画线处填入的正确语句是( )。 #include <iostream> using namespace std; class Base { public: void fun () { cout<<"Base: :fun"<<end1; } }; class Derived : public Base { public: void fun ( ) { cout<<"Derived: :fun"<<end1; } }; int main ( ) { Base a,*pb; Derived b; _________; pb->fun(); //调用基类的成员函数 fun() return 0 ; }A.pb=aB.pb=bC.pb=bD.pb=Base
考题
假定变量b和pb定义为“intb[10],*pb=b;”,要将24赋值给b[l]元素中,不正确的赋值语句是()。A、*(pb+l)=24B、*(b+l)=24C、*++b=24D、*++pb=24
考题
单选题假定变量b和pb定义为“intb[10],*pb=b;”,要将24赋值给b[l]元素中,不正确的赋值语句是()。A
*(pb+l)=24B
*(b+l)=24C
*++b=24D
*++pb=24
考题
单选题A和B是两个独立事件,则下列式子错误的是()。A
P(AB.=PA.PB.B
B.P(A+B.=P+PB.-P(AB.C
C.P+PB.=1D
D.P(A/B.=P[PB.≠0]
热门标签
最新试卷