赞题库-背景图
单项选择题

下列语句中,错误的是( )。

A.const int buffer=256;
B.const double*point;
C.int const buffer=256;
D.double*const point;
<上一题 目录 下一题>
热门试题

单项选择题有如下程序: #include<iostream> using namespace std; int main() { int *p; *p=9; cout<<’’The value atp:’’<<*p; return 0; } 编译运行程序将出现的情况是( )。

A.编译时出现语法错误,不能生成可执行文件
B.运行时一定输出:The value at p:9
C.运行时一定输出:The value at p:*9
D.运行时有可能出错

单项选择题下列有一维数组a的定义中,语法正确的是( )。

A.int a(10);
B.int n=7,a[n];
C.int n;cin>>n;int a[n];
D.const int size=10;int a[size];