Sail E0 Webinar
Question
What is the problem in following variable declaration?     
float 3Bedroom-Hall-Kitchen?;
Options:
A .  The variable name begins with an integer
B .  The special character '-'
C .  The special character '?'
D .  All of the mentioned.
Answer: 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.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers