Allowed variable names in C
The following types of names have various problems:
Names beginning with an underscore
Names beginning with two underscores, like __var, or an underscore and a capital letter, _Var, are reserved for system use.
Prefixes you can't use
str,mem
Suffixes you can't use
_t- Reserved by Posix.
E<digit>- Reserved for error codes.
Web links
- What are the rules about using an underscore in a C++ identifier?
-
C Reserved Identifiers
Archive version of page from Oak Road Systems.
Copyright © Ben Bullock 2009-2025. All
rights reserved.
For comments, questions, and corrections, please email
Ben Bullock
(benkasminbullock@gmail.com).
/
Privacy /
Disclaimer