注意:此页面搜索的是所有试题
题目内容
(中北大学C语言程序设计)
若有以下定义,则正确的赋值语句为( )
struct complex
{ float real;
float image;
};
struct value
{ int no;
struct complex com;
}val1;
(2分)
Acom.real=1;
Bval1.complex.real=1;
Cval1.com.real=1;
Dval1.real=1;
struct complex
{ float real;
float image;
};
struct value
{ int no;
struct complex com;
}val1;
(2分)
Acom.real=1;
Bval1.complex.real=1;
Cval1.com.real=1;
Dval1.real=1;
参考答案