Sail E0 Webinar
Question

Which of the following special symbol allowed in a variable name?


Options:
A .  * (asterisk)
B .  | (pipeline)
C .  - (hyphen)
D .  _ (underscore)
Answer: Option D

Variable names in C are made up of letters (upper and lower case) and digits. The underscore character ("_") is also permitted. Names must not begin with a digit.

Examples of valid (but not very descriptive) C variable names:
=> foo 
=> Bar 
=> BAZ 
=> foo_bar 
=> _foo42 
=> _ 

=> QuUx 



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers