Which of the following correctly declares an enumerated data type named student?
A) enum student { "Bill", "Tom", "Mary" };
B) int Bill = 1, Tom = 2, Mary = 3; enum student { 1, 2, 3 };
C) enum student { Bill, Tom, Mary };
D) Any of the above 3 methods will work.
E) None of the above 3 methods will work.
Correct Answer:
Verified
Q8: A pair of characters or a pair
Q9: All of the relational operators are binary.
Q14: What will the following expression evaluate to?
Q15: What will the following statement do if
Q16: The statement causes other program statements to
Q17: A trailing else placed at the end
Q18: The default section of a switch statement
Q20: When a program lets the user know
Q33: If the sub- expression on the left
Q37: A switch statement branches to a particular
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents