ExamVeda
Login
Home
This question belongs to C Program C Fundamentals
C Fundamentals
?

A C variable cannot start with

Answer & Solution
Correct Answer: Option C
In C programming, variable names must adhere to specific rules regarding their initial characters. A C variable cannot start with the following:

A Number:
Variable names in C must begin with a letter (a-z, A-Z) or an underscore (_). They cannot start with a digit (0-9). For example, 1variable is not a valid variable name.

A Special Symbol Other Than Underscore:
Variable names cannot start with special symbols like @, #, $, etc., other than the underscore (_). For example, @variable is not a valid variable name.

Option D: An Alphabet:
This option is incorrect because variables can start with an alphabet (a-z, A-Z) or an underscore (_).

Therefore, the correct answer is Option C: Both of the above as variable names cannot start with a number or a special symbol other than an underscore.
Examveda
Question posted by Examveda
Community

Join the Discussion

7 Comments
Sajib Bosu
Sajib Bosu 5 years ago
"&" sign is also a special symbol, so only ans should be option A
Faisal Jutt
Faisal Jutt 6 years ago
Both a & b
Chitty 6666
Chitty 6666 7 years ago
I think B is only correct one
Khadar Haji
Khadar Haji 7 years ago
Both
Venkataramana R
Venkataramana R 9 years ago
We can have %3d naa
Mujtaba Hassan
Mujtaba Hassan 9 years ago
(option c ) not a nor b
Shyama Sundar
Shyama Sundar 10 years ago
option a