...
Question 7707 – Artificial-Intelligence
November 15, 2023
Question 3337 – 2015 December NTA UGC NET Paper 1
November 15, 2023
Question 7707 – Artificial-Intelligence
November 15, 2023
Question 3337 – 2015 December NTA UGC NET Paper 1
November 15, 2023

Question 4326 – UGC NET CS 2006 Dec-paper-2

Enumeration variables can be used in :

Correct Answer: A

Question 12 Explanation: 
→ Enumeration variables can be used in search statement like an integer variable.
→ The enumerator names are usually identifiers that behave as constants in the language. An enumerated type can be seen as a degenerate tagged union of unit type. A variable that has
been declared as having an enumerated type can be assigned any of the enumerators as a value.
→ In ‘C’ language exposes the integer representation of enumeration values directly to the programmer. Integers and enum values can be mixed freely, and all arithmetic operations on enum values are permitted. It is even possible for an enum variable to hold an integer that does not represent any of the enumeration values.
A
search statement like an integer variable
B
break statement
C
preprocessor commands
D
function statement
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!