![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[多选题]
设有如下变量说明:byte myByte;int myInt;long myLong;char myChar;float myFloat;double myDouble;以下赋值语句哪个需要强制转换。
A.myInt = myByte;
B.myInt = myLong;
C.myByte = 3;
D.myInt = myChar;
E.myFloat = myDouble;
F.myFloat = 3;G.myDouble = 3.0;
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.myInt = myByte;
B.myInt = myLong;
C.myByte = 3;
D.myInt = myChar;
E.myFloat = myDouble;
F.myFloat = 3;G.myDouble = 3.0;
设有如下变量说明,则a+(int)((int)b+c)>>(int)(b-c)的值为【 】。 int a=5;float b=7.2,c=3.6;
A.以上的说明形式非法
B.ST是一个结构体类型
C.NEW是一个结构体类型
D.NEW是一个结构体变量
设有如下宏定义
#define MYSWAP(z,x,y) {z=x;x=y;y=z;}
以下程序段通过宏调用实现变量a、b内容交换,请填空。
float a=5,b=16,c;
MYSWAP(______,a,b);
设有以下结构类型说明和变量定义,则变量a在内存所占字节数是______。
Struct stud
{ char hum[6];
int s[4];
double ave;
} a,*p;
设有语句char a='\72';则变量a包含的字符个数是( )。
(A)1 (B)2 (C)3 (D)说明不合法
设有以下结构类型说明和变量定义,则变量a在内存所占字节数是______。
Struct stud
{ char hum[6];
int s[4];
double ave;
} a,*p;
A.可以用*P表示s[0]
B.s数组中元素的个数和p所指字符串长度相等
C.s和p都是指针变量
D.数组s中的内容和指针变量p中的内容相等