1 Reply Latest reply: Mar 9, 2008 8:42 PM by 807601 RSS

    Enum multiple choice question

      Hello here is the question;
      enum num
      { BERT("CAFE") ,
      KATHY("BABE") ;}

      a.     Runtime Exceptions are thrown
      b.     Compile time error
      c.     BERT is equated to CAF? and KATHY is equated to BABE.
      d.     Either, BERT is equated to CAF? or KATHY is equated to BABE.
      e.     None of the above.

      Pesonally I this that the answer is C but i don't know what is the benefit of an enumerated type like this one BERT("CAFE")