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

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

设有以下定义 int a=10; double b=2.5; char c=’Z’; #define d 100 则下面语句中错误的是

A.a++;

B.b++;

C.c++;

D.d++;


参考答案和解析
D 解析:选项D中d是符号常量,不能进行++的运算。
更多 “设有以下定义 int a=10; double b=2.5; char c=’Z’; #define d 100 则下面语句中错误的是A.a++;B.b++;C.c++;D.d++;” 相关考题
考题 下列定义变量的语句中错误的是A)int _int;B)double int_;C)char For;D)float US$;

考题 若有以下函数首部int fun(double x[10], int *n)则下面针对此函数的函数声明语句中正确的是A)int fun(double x, int *n);B)int fun(double , int );C)int fun(double *x, int n);D)int fun(double *, int *);

考题 若要求定义具有 10 个 int 型元素的一维数组 a ,则以下定义语句中错误的是A ) #define N 10int a[N];B ) #define n 5int a[2*n];C ) int a[5+5];D ) int n=10,a[n];

考题 下列定义变量的语句中正确的是( )。A)int _int; B)double 3int_;C)char for; D)float US;

考题 若要求定义具有1O个int型元素的一维数组a,则以下定义语句中的错误的是______。A.#define N 10 int a[N];B.#define n 5 int a[2*n]C.int a[5+5];D.int n=10,a[n];

考题 设有如下的变量定义:double x=4.700000;float y=2.5f;int z=7;则执行表达式“y+z%3* (int) (x+y)%2/4”后的值是【 】。

考题 下面结构体的定义语句中,错误的是( )。 A.struct ord{int x;int Y;int Z;};struet ord a;SXB 下面结构体的定义语句中,错误的是( )。A.struct ord{int x;int Y;int Z;};struet ord a;B.struct ord{int x;int y;int Z;}struct ord a;C.struct ord{int X;int Y;int Z;}a;D.struct{int X;int y;int Z;}a;

考题 设有以下定义 int a=0; double b=1.25; char c='A'; #define d 2 则下面语句中错误的是A.a++;B.b++;C.c++;D.d++;

考题 下列定义数组的语句中正确的是______。A.#define size 10 char str1[size],str2[size+2];B.char str[];C.int num['10'];D.int n=5; int a[n][n+2];

考题 下列定义语句中,错误的是A.int px*;B.char*acp[10];C.char(*pac)[10];D.int(*p)();

考题 若有以下函数首部: int fun(double x[10],int *n) 则下面针对此函数的函数声明语句中正确的是( )。A.int fun(double x, int *n);B.int fun(double, int);C.int fun(double *x, int n);D.int fun(double*, int*);

考题 下列定义变量的语句中错误的是( )。A.int_int;B.double int_;C.char for;D.float US$

考题 若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。A. floatSX 若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。A. floatB.intC.charD.double

考题 若要求定义具有10个int型元素的一维数组a,则以下定义语句中错误的是A.#define N 10 int a [N];B.#define n 5 int a [2*n];C.int a [5+5];D.int n=10,a [n];

考题 下列定义变量的语句中错误的是( )。A.int jnt;B.double int_;C.char For;D.float US$;

考题 若有以下函数首部:int fun(double x[10],int*n)则下面针对此函数的函数声明语句中正确的是( )。A.int fun(double,int);B.int fun(double木,int*);C.int mn(double*x,int n);D.int fun(double x,intint*n)

考题 设有以下变量定义,并已赋确定的值: char w; int x; float y; double z; 则表达式:w*x+z-y所求得的数据类型为( )。A.charB.intC.floatD.double

考题 若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. float SXB 若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. floatB.intC.charD.double

考题 以下定义语句中,错误的是 ______。A.int a[]={1,2);B.char *a[3];C.char s[10]= "test";D.Int n=5,a[n];

考题 设有以下定义 int a=0; double b=1.25; charc c='A'; #define d 2 则下面语句中错误的是A.a++;B.b++;C.c++;D.d++;

考题 下列关于结构型变量的定义语句中,错误的是( )A.typedef struct CCCB.define GGG struct { char name[20];GGG CCC { char name[20]; int age; int age; }GGG; }; GGG abc ; GGG CCC abc;C.structD.struct { char name[20]; { char name[20]; int age; int age; }ccc; }abc; CCC abc;

考题 假设有函数模板定义如下:template typename T Max(T a,T b,Tc){c=a+b;}下列选项正确的是()A、)int x,y;char z;Max(x,y,z);B、)double x,y,z;Max(x,y,z);C、)int x,y;float z;Max(x,y,z);D、)float x;double y,z;Max(x,y,z);

考题 设有说明:char w;int x;float y;double z;则表达式w*x+z-y 值的数据类型为().A、floatB、charC、intD、double

考题 下列定义数组的语句中正确的是().A、#define size 10  char  str1[size],str2[size+2];B、char str[];C、int num[’10’];D、int n=5; int a[n][n+2];

考题 若要求定义具有10个int形元素的一维数组a,则以下的定义语句中错误的是()A、#define N 10B、#define n 5C、int a[5+5];D、int n=10,a[n];

考题 设有以下结构类型说明和变量定义,则变量a在内存所占字节数是().   struct stud { char num[8]; int s[4]; double ave; } a,*p; 

考题 单选题若有以下函数首部int fun(double x[10],int*n)则下面针对此函数的函数声明语句中正确的是(  )。A int fun(double*,int*);B int fun(double,int);C int fun(double *x,int n);D int fun(double x,int*n);

考题 填空题设有以下结构类型说明和变量定义,则变量a在内存所占字节数是().   struct stud { char num[8]; int s[4]; double ave; } a,*p;