下列对枚举类型的使用的代码中错误的是()。
A: enum {no, yes, none}answer; if (answer == yes) { printf("Yes\n"); }
B: enum response{no = -1, yes = 1, none = 0}; enum response answer;
C: answer = yes; printf("%d", answer);
D: answer = "yes"; printf("%s", answer);
A: enum {no, yes, none}answer; if (answer == yes) { printf("Yes\n"); }
B: enum response{no = -1, yes = 1, none = 0}; enum response answer;
C: answer = yes; printf("%d", answer);
D: answer = "yes"; printf("%s", answer);
举一反三
- 下列对枚举类型的使用的代码中错误的是()。 A: enum {no, yes, none}answer; if (answer == yes) { printf("Yes "); } B: enum response{no = -1, yes = 1, none = 0}; enum response answer; C: answer = yes; printf("%d", answer); D: answer = "yes"; printf("%s", answer);
- Can I try this on? (Which answer is correct) A: Yes, of course. B: Yes, really. C: Yes, always. D: Yes, I am.
- Choose the best answer according to what you hear. A: Yes, but only a little bit B: Not at all C: Yes, very much. D: Yes, sometimes
- “Alice couldn’t answer the question, could she?” “________.” A: No, she couldn’t B: No, she could C: Yes, she couldn’t D: Yes, she answers
- Must I answer the question? 回答是:Yes, you must. / No,you needn't. 正确吗?