单选题
以下选项中不能正确把cl定义成结构体变量的是( )。
A、
typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B、
struct color cl { int red; int green; int blue; }
C、
struct color { int red; int green; int blue; }cl;
D、
struct { int red; int green; int blue; }cl;
【正确答案】
B
【答案解析】
[解析] 本题选项A)、C)、D)是定义结构体及其变量的三种正确的形式,能正确将c1定义为结构体变量。选项B)错误。
提交答案
关闭