Home » C Programming » Variables » Question
  1. What is the problem in following variable declaration?
    float 2B-H-K?;
    1. The special character ‘-‘
    2. The special character ‘?’
    3. The variable name begins with an integer
    4. All of above
    5. None of these
Correct Option: D

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.



Your comments will be displayed only after manual approval.