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