网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
若有定义int a[4]={1,2,3},则a[0]的值是()。
A.1
B.2
C.3
D.0
参考答案和解析
true
更多 “若有定义int a[4]={1,2,3},则a[0]的值是()。A.1B.2C.3D.0” 相关考题
考题
以下错误的定义语句是A)int x[][3]={{0},{1},{1,2,3}};B)int x[4][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};C)int x[4][]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};D)int x[][3]={1,2,3,4};
考题
下列错误的定义语句是( )。A.int x[ ][3]={{0},{1},{1,2,3}};B.int x[4][3]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};C.int x[4][ ]={{1,2,3},{1,2,3},{1,2,3},{1,2,3}};D.int x[ ][3]={1,2,3,4};
考题
若有定义int a[9],+P=a;,则P+5表示( )。A.数组元素a[5]的值B.数组元素a[5]的地址SXB
若有定义int a[9],+P=a;,则P+5表示( )。A.数组元素a[5]的值B.数组元素a[5]的地址C.数组元素a[6]的地址D.数组元素a[0]的值加上5
考题
若有以下程序:include using namespace std;int main(){ int a[4] [4] = {{1,2,3,-4}
若有以下程序: #include <iostream> using namespace std; int main() { int a[4] [4] = {{1,2,3,-4},{0,-12,-13,14}, {-21,23,0,-24},{-31,32,-33,0}}; int i,j,s = 0; for(i=0;i<4;i++) { for(j=O;j<4;j++) { if(a[i] [j] >=0) continue; s+=a [i] [j]; } } cout<<s<<end1; return 0; } 执行后的输出结果是( )。A.-138B.141C.75D.-1
考题
下列说法正确的是( )。A.定义int a[4]={1,3};,则a[0]=1,a[1]=3,a[3]的值不确定B.定义static int a[4];,则元素值不确定C.const int x;x=5;表示给常量x赋初值D.定义int a[4];,则其元素的值是不确定的
考题
若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11S
若有定义“int a=5,b=7;”,则表达式a%-(b%2) 运算后,a的值为( )。A.0B.1C.11D.3
考题
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。 A.-20B.-l0C.0
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。A.-20B.-l0C.0D.10
考题
若有定义语句:int m[][3]={1,2,3,4,5,6,7};,则与该语句等价的是A.int m[][3j={{1,2,3},{4,5,6},{i 7}};B.int m[][3]={{1,2},{3,4},{5,6,7}};C.int m[][3]={{1,2,3},{4,5},{6,7}};D.int nl[][3]={{1},{2,3,4},{5,6,7}};
考题
单选题若有定义:int x=3,y=4;则表达式!x||y的值为()A
1B
0C
3D
4
热门标签
最新试卷