阅读程序,输出结果。
#include
using namespace std;
int main()
{
int a[3][2] = { 1, 2,4, 5 };
int *p;
p = a[0];
cout<
" "<
" "<
" "<
p=a[1];
cout<
" "<
" "<
" "<
p=a[2];
cout<
" "<
" "<
" "<
return 0;
}
A、1 2 4 5
4 5 0 0
0 0 不确定 不确定
B、编译错误
C、1 2 4 5
0 0 0 0
0 0 不确定 不确定
D、1 2 4 5
4 5 0 0
不确定 不确定 不确定 不确定
#include
using namespace std;
int main()
{
int a[3][2] = { 1, 2,4, 5 };
int *p;
p = a[0];
cout<
" "<
" "<
" "<
p=a[1];
cout<
" "<
" "<
" "<
p=a[2];
cout<
" "<
" "<
" "<
return 0;
}
A、1 2 4 5
4 5 0 0
0 0 不确定 不确定
B、编译错误
C、1 2 4 5
0 0 0 0
0 0 不确定 不确定
D、1 2 4 5
4 5 0 0
不确定 不确定 不确定 不确定