以下选项中不能正确把cl定义成结构体变量的是( )。

admin2009-01-15  44

问题 以下选项中不能正确把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;

答案2

解析 本题选项A)、C)、D)是定义结构体及其变量的三种正确的形式,能正确将c1定义为结构体变量。选项B)错误。
转载请注明原文地址:https://kaotiyun.com/show/2mXp777K
0

最新回复(0)