Top

Discussion

Pick the incorrect statement with respect to enums.

  • A.Two enum symbols cannot have the same value
  • B.Only integer constants are allowed in enums
  • C.It is not possible to change the value of enum symbols
  • D.Enum variables are automatically assigned values if no value is specified

Answer: A

The statement that two enum symbols cannot have the same value is incorrect. Any number of enum symbols can have the same value.

No comment is present. Be the first to comment.
Loading…

Post your comment