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

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

设有以下定义 int a=0; double b=1.25; char c='A'; #define d 2 则下面语句中错误的是()。

A.a++;

B.b++;

C.c++;

D.d++;


参考答案和解析
D 解析:选项D中d是符号常量,不能进行++的运算。
更多 “设有以下定义 int a=0; double b=1.25; char c='A'; #define d 2 则下面语句中错误的是()。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 a=b=0;B)char A=65+1,b='b';C)float a=1,*b=a,*c=b ;D)double a=0.0,b=1.1;

考题 有如下定义#define D 2int x=5;float y=3.83;char c=′D′;则下面选项中错误的是A.x++;B.y++;C.c++;D.D++;

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

考题 以下定义语句中正确的是A.int a=b=0;B.char A=65+1,b=′b′;C.float a=1,*b=a,*c=b;D.double a=0.0;b=1.1;

考题 以下定义语句中正确的是A.int a=b=0;B.char A=65+1,b=′b′;C.float a=1,*b=a,*c=b;D.double a=00;b=1.1;

考题 设有如下定义 struct ss { char name[10]; int age; char sex; } std[3],* p=std; 下面各输入语句中错误的是A.scanf("%d",(*p).age);B.scanf("%s",std.name);C.scanf("%c",std[0].sex);D.scanf("%c",(p->sex));

考题 设有以下定义 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];

考题 若有以下函数首部: 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];

考题 设有定义:struct{char mark[12];int numl;double num2;}tl,t2;,若变量均已正确赋初值,则以下语句中错误的是A.tl:t2;B.t2.numl=t1.numl:C.t2.mark=t1.mark;D.t2.nurn2=t1.num2:

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

考题 设有定义int a=1;float f=1.2;char C=a;,则下列表示错误的是( )。 A.++a;B.f一一;SXB 设有定义int a=1;float f=1.2;char C=a;,则下列表示错误的是( )。A.++a;B.f一一;C.c++;D.8++;

考题 设有以下变量定义,并已赋确定的值: 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];

考题 设有如下定义 struct ss { char name[10]; int age; char sex; }std[3], * p=std; 下面各输入语句中错误的是A.cin>>(* p).age);B.cin>>std.name);C.cin>>std[0].sex);D.cin>>(p->.sex));

考题 设有以下定义 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;

考题 下列定义数组的语句中正确的是().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];

考题 假设有说明int a=0;double x=5.16;,则在以下语句中,()属于编译错误。A、x=a/x;B、x=x/a;C、a=a%x;D、x=x?a;

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

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