Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the problem in following variable declaration?
          float 3Bedroom-Hall-Kitchen?;
  2. A.
    The variable name begins with an integer
    B.
    The special character '-'
    C.
    The special character '?'
    D.
    All of the mentioned.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    A variable name cannot start with an integer, along with that the C compiler interprets the '-' and '?' as a minus operator and a question mark operator respectively.


Be The First To Comment