单项选择题
下列程序的输出结果是( )。 #include <iostream.h> int b=2; int func(int *A) { b + = *a;return(B) ;} void main( ) { int a=2,res=2; res + = func(&A) ; cout < < res;}
A.4
B.6
C.8
D.10
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面叙述不正确的是( )。
A.基类的保护成员在派生类中仍然是保护的成员
B.基类的保护成员在公有派生类中仍然是保护的
C.基类的保护成员在私有派生类中仍然是私有的
D.对基类成员的访问必须是无二义性
点击查看答案&解析
单项选择题
下列程序的输出结果为( )。# include < iostream.h>void main( ){char * a[ ]={ hello , the , world };char * * pa=a;pa ++;cout << * pa <<endl;}
A.hello
B.the
C.world
D.hellotheworld
点击查看答案&解析
相关试题
下面程序的运行结果是( )。#include<i...
有如下程序#include<iostream.h>voidma...
在数据库设计中,将E-R图转换成关系数据模...
视图设计一般有3种设计次序,下列不属于视...
开发软件所需高成本和产品的低质量之间有着...