单项选择题

在int b[][3]=1,3,2;4,5,6,0;中b[2][2]的值是( )。

A.0
B.5
C.6
D.2
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序的输出结果是( ) #include<iostream> using namespace std; int main() int s: for(int k=2;k<6;k+=2) s=1; for(int j=k, j<6;j++)s+=j; cout<<s<<end1:
A.9
B.1
C.11
D.10
单项选择题
有以下程序: #include<iostresm.h> void main() int n; cin>>n; if (n++<10) cout<<n<<endl; else cout<<n--<<endl; 若执行上述程序时,从键盘上输入9,则输出结果是( )。
A.11
B.10
C.9
D.8
相关试题
  • 若有以下程序: #inclcude<iostream.h...
  • 有以下程序: #include<iostream.h> ...
  • 下列字符串常量表示中,( )是错误的。
  • C++类体系中,不能被派生类继承的有( )。
  • C++中的类有两种用法:一种是类的实例比...