网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下面关于const指针的语句中,正确的是()。

A.int a=10; const int *p=&a; *p=20;

B.int a=10; int *const p= &a; *p=20;

C.int a=10, b=20; int *const p=&a; p=&b;

D.int a=10, b=20; const int *const p=&a; p=&b;


参考答案和解析
文件指针是程序中用FILE定义的指针变量
更多 “下面关于const指针的语句中,正确的是()。A.int a=10; const int *p=a; *p=20;B.int a=10; int *const p= a; *p=20;C.int a=10, b=20; int *const p=a; p=b;D.int a=10, b=20; const int *const p=a; p=b;” 相关考题
考题 下列语句中,错误的是______。A.const int buffer=256;B.const double*point;C.int const buffer=256;D.double*const point;

考题 ( 18 ) 下列语句中,错误的是A ) const int buffer=256;B ) const double *point;C ) int const buffer=256;D ) double * const point;

考题 下列语句中错误的是( )。A.const int a;B.const int a=10;C.const int*point=0;D.const int*point=new int(10);

考题 在VB中,以下关于符号常量的声明正确的是 ( )A.Const TAG as StringB.Const TAG as String=&qu 在VB中,以下关于符号常量的声明正确的是 ( )A.Const TAG as StringB.Const TAG as String="Visual Basic"C.Public TAG as String="Visual"D.Dim TAG as String

考题 设函数f的原型是:char *f (const char*);,pf 是指向f 的指针,则pf 的定义是【 】。

考题 关于const常量定义,下面正确的使用方式是() A.const Pi float64 = 3.14159265358979323846const zero = 0.0B.const (size int64 = 1024eof = -1 )C.const (ERR_ELEM_EXIST error = errors.New("element already exists")ERR_ELEM_NT_EXIST error = errors.New("element not exists"))D.const u, v float32 = 0, 3 const a, b, c = 3, 4, "foo"

考题 要禁止修改指针p本身,又要禁止修改p所指向的数据,这样的指针应定义为( )。 A.const char *p=”ABCD”;B.char const *p=”ABCD”;C.char *const p=”ABCD”;D.const char *const p=”ABCD”;

考题 下列语句中,错误的是( )。A.const int buffer:256;B.const int temp;C.const double*point;D.const double*rt=new double(5.5);

考题 对下列语句正确的描述是( )。 const int *x; int *const x;A.语句1的含义是指针变量x不能更改B.语句2的含义是指针变量x所指向的值不能更改C.语句2的含义是指针变量x不能更改D.语句1和语句2含义是相同的

考题 下面的语句中错误的是A.int a=5;int x[a] ;B.const int a=5;int x[a] ;C.int n=5;int * p=new int[a] ;D.const int n=5;int * p=new int[a] ;

考题 对下列语句正确的描述是( )。 const int*x; //(1) int*const X; //(2)A.语句(1)的含义是指针变量x不能更改B.语句(2)的含义是指针变量x所指向的不能更改C.语句(2)的含义是指针变量x不能更改D.语句(1)和(2)是相同含义的不同定义方式

考题 将关键字const写在函数头之后,函数体之前,说明该函数是一个const成员函数。此时const不是指定函数的返回值,而是修饰______指针。

考题 下面的语句中错误的是( )。A.int a=5;int x[a];B.eonst int a=5;int x[a];C.int n=5;int *P=new int[a];D.const int n=5;int *p=new int[a];

考题 下列语句中,错误的是( )。A.const int buffer=256;B.const double*point;C.int const buffer=256;D.double*eonst point:

考题 下面的语句中错误的是( )。A.int a=5;int x[a];B.const int a=5;int x[a];C.int n=5;int *p=new int[n];D.const int n=5;int *p=new int[a];

考题 在说明int const *ptr;中,ptr应是( )。A.指向常量的指针B.指针常量C.指针常数D.常指针

考题 以下4组语句中不正确的是A.A=1:A=A+1B.Const A=1:A=A+1[10,10]C.A=B=1D.Print A>=B

考题 C++语句const char * const p="hello" , ,所定义的指针p和它所指的内容都不能被 【10】 。

考题 下面句中加点的熟(成)语运用不当的是( )。

考题 下面句中加点的熟(成)语运用不当的是()。A. B. C. D.

考题 在下列的标识符常量的定义语句中,错误的定义语句是()。A、const double PI=3.14159;B、const int N=20;C、const char ch;D、const bool mark=true;

考题 已知:constAa;其中A是一个类名,指向常对象指针的表示为()。A、const*ApaB、constA*paC、A*constpaD、const*paA

考题 const char *p说明了p是指向字符串常量的指针。

考题 const char *p说明了p是指向()的指针。

考题 const型指针有几种形式?其作用是什么?

考题 填空题const char *p说明了p是指向()的指针。

考题 单选题下列语句中,错误的是(  )。A const int buffer=256;B const double*point;C int const buffer=256;D double*const point;

考题 判断题const char *p说明了p是指向字符串常量的指针。A 对B 错