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

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

设有下列说明语句: Strcut Str {int x;float y;char z;}st; 则下列的叙述中不正确的是( )。

A.struct是结构体类型的关键字

B.st是结构体类型名

C.x、y、z都是结构体成员名

D.struct str是结构体类型名


参考答案

更多 “ 设有下列说明语句: Strcut Str {int x;float y;char z;}st; 则下列的叙述中不正确的是( )。A.struct是结构体类型的关键字B.st是结构体类型名C.x、y、z都是结构体成员名D.struct str是结构体类型名 ” 相关考题
考题 若有如下函数模板定义,则正确使用该函数模板的语句是( )。templatevoid add(type a, type b, type 和c){ c=a+b ; } A.float x,y,z;add(x,y,z) ;B.int x,y,z;add(x,y,和z) ;C.float x,y ;int z;add(x,y,z) ;D.float x,y ;int z;add(x,y,和z) ;

考题 设有以下说明语句struct ex{ int x ; float y; char z ;} example;则下面的叙述中不正确的是A.struct结构体类型的关键字B.example是结构体类型名C.x,y,z都是结构体成员名D.struct ex是结构体类型名

考题 下列语句段中,正确的是( )。A.struct{int x;float y;int a[2];unsigned b[3];char name[10];};B.struct stu{unsigned a[3];unsigned b[4];}x;int*p=x.a;C.struct stu{int a;float x[4];}y={1,1.0};float data=y.x;D.struct nd{int a,b;unsigned c[2]=5;};

考题 若有以下类型说明语句: char w;int x;float y, z; 则表达式w*x+z-y的结果为______类型。A.floatB.charC.intD.double

考题 设有下列说明语句: strcut str {int x;float y;char z;}st; 则下列的叙述中不正确的是( )。A.00001111B.11111101C.00000010D.11000000

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

考题 阅读下列程序说明和c代码,将应填入(n)处的字句写在对应栏内。[说明]下面的程序利用递归算法计算x和y的最大公约数。[函数2.1]main ( ){ int x,y,k,t;scanf(" % d% d" , x, y);if(x>y) { t=x;x=y; y=t;}(1);while(k! =0){y=x;(2);k=y%x;}prinff( "% d" ,x); }[函数2.2说明]函数fun(char *str,char *substr的功能是计算子串sugbstr在串str中出现的次数。[函数2.2]fun(ehar * str, char * substr){ int x,y,z;(3);for(x=0;str[ x] ! = '\O';x + + )for(y=x,z=0;sabstr[z] = =str[y];(4),y+ +)if((5)= ='\0') {num + +;break;}return(num);}

考题 下面结构体的定义语句中,错误的是( )。 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;

考题 设有说明语句:intx=1,y=3,z=5;则下面表达式中值为0的是()。 A、xB、charstr[80];str=”abcdefg”;C、char*pstr=”abcdefg”D、char*pstr=NULL;pstr=”abcdefg”;

考题 若某C语句如下: struct ex {int x;float y;char z;}example; 则以下叙述中不正确的是(29)。A.struct结构体类型的关键字B.x,y,z都是结构体成员名C.stmct ex是结构体类型D.example是结构体类型名

考题 设有以下说明语句:则下面的叙述中不正确的是( )。A.struct结构体类型的关键字B.example是结构体类型名C.x,y,z都是结构体成员名D.struet ex是结构体类型名

考题 设有以下C语言说明语句:struct ex{int x;float y;char z;} example则下面的叙述中不正确的是(52)。A.struct是结构体类型的关键字B.x、y、z都是结构体成员名C.struet ex是结构体类型D.example是结构体类型名

考题 设有下列说明语句: strcut str {int x; float y; char z;}st; 则下列的叙述中不正确的是( )。A.struct是结构体类型的关键字B.st是结构体类型名C.x、y、x都是结构体成员名D.struct str是结构体类型名

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

考题 设有以下说明语句: struct ex { int x;floct y;char z;} example; 则下面的叙述中不正确的是 ( )A.struct是结构体类型的关键字B.example是结构体类型名C.x,y,z都是结构体成员名D.struct ex是结构体类型

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

考题 设有以下说明语句: struct ex {int x;float y;char z; }example;在下面的叙述中,不正确的一条是______。A.struct是结构体类型的关键词B.example是结构体类型名C.x,y,2都是结构体成员名D.struct ex是结构体类型

考题 设有以下声明语句 street ex { int x;float y;char z;} example; 则下面的叙述中不正确的是 ______ 。A.struct是结构体类型的关键字B.example是结构体类型名C.x,y,z都是结构体成员名D.struct ex是结构体类型

考题 下列语句段中,正确的是( )。A.struct {int x; float y; int a[2]; unsigned b[3]; char name[10]; };B.structstu { unsigneda[3]; unsigned b[4]; }x; int*p=x.a;C.struc tsu { int a; float x[4]; }y={1,1.0}; floatdat a=y.x;D.stmct nd {int a,b; unsigned c[2]=5; };

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

考题 设有下列说明语句:strcut str{int x;float y;char z;}st;则下列的叙述中不正确的是( )。A.struct是结构体类型的关键字B.st是结构体类型名C.x、y、z都是结构体成员名D.struct str是结构体类型名

考题 设有一共用体变量定义如下: union data { long w; float x; int y; char z;}; union data beta; 执行下列语句后,正确的共用体变量beta的值是( )。 beta.w=123456; beta.y=888; beta.x=3.1416; beta.z='x';A.123456B.888C.3.1416D.'X'

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

考题 假设有函数模板定义如下: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、char a;b;c;B、int x,z;C、char:a b c;D、int x;z;

考题 执行下列语句后,b 的十进制值是().  int x=240,y=15,b;  char z='A';  b=(( x  y )  ( z  'a' ));

考题 单选题若有说明:char w; int x; float y; double z; 则表达式w*x+y-z的值的数据类型是()。A doubleB charC intD float