ABy Admin
May 13'24
Exercise
- Can a variable name start with a number?
- Can a variable name start with a typographical symbol(e.g. #, *, _)?
- Give an example of a C variable name that would not work. Why doesn't it work?
ABy Admin
May 13'24
- No, the name of a variable must begin with a letter (lowercase or uppercase), or an underscore.
- Only the underscore can be used.
- for example, #nm*rt is not allowed because # and * are not the valid characters for the name of a variable.
References
Wikibooks contributors. "C Programming/Exercise solutions". Wikibooks. Wikibooks. Retrieved 13 May 2024.