C has 32 keywords in the original language standard, plus a small set of reserved identifiers and standard-library names you should avoid reusing. The exact list depends on which version of the standard your compiler follows: C89 has 32 keywords, C99 adds five, and C11 adds a few more, so a modern compiler typically recognizes about 44 keywords.
Those words are reserved because the compiler gives them a fixed meaning. You cannot use any of them as the name of a variable, function, struct, or macro. Everything else you type — names you invent — is an identifier, and the rules for those are separate from the keyword list.
The 32 Original Keywords
The C89 keyword set is the baseline every compiler accepts. It breaks into a few natural groups.
Type specifiers: char, double, float, int, long, short, signed, unsigned, void. These name the basic data types and the modifiers that adjust their size or signedness.
Storage-class specifiers: auto, register, static, extern, typedef. These control where an object lives and how long it lasts, or introduce a new type name.
Type qualifiers: const and volatile. const says the program will not modify the object through that name; volatile tells the compiler the value may change outside the program's control, so it must not cache it in a register.
Flow control: if, else, switch, case, default, for, while, do, break, continue, goto, return. These select which statement runs next.
Operators and grouping: sizeof yields the size in bytes of a type or expression; struct, union, and enum define aggregate types.
Keywords Added After C89
C99 added five: inline (a hint to expand a function at the call site), restrict (a promise that a pointer is the only way to reach an object, which helps optimization), _Bool (the boolean type), _Complex, and _Imaginary (complex and imaginary floating types).
C11 added _Alignas, _Alignof, _Atomic, _Generic, _Noreturn, _Static_assert, and _Thread_local. These cover alignment control, atomic objects, type-generic selection, and thread-local storage.
If you are unsure which set your compiler supports, check its documentation for the standard it implements, or compile a tiny file that uses one of the newer words and see whether it errors.
Identifiers You Write Yourself
An identifier is any name you create: variable names, function names, struct tags, typedef names, labels, and macro names. The rules are simple and the compiler enforces them strictly.
The first character must be a letter (upper or lower case) or an underscore. Every later character may be a letter, a digit, or an underscore. C is case-sensitive, so count, Count, and COUNT are three different names. Length is effectively unlimited for the compiler, though very old linkers truncated names, so keep names reasonably short.
You cannot use a keyword as an identifier. int int = 5; is a syntax error because the second int is reserved.
Names the Standard Reserves
Beyond keywords, the C standard reserves some identifier patterns. Any identifier beginning with an underscore followed by an uppercase letter (like _Bool, _Exit) is reserved for the implementation. Any identifier beginning with two underscores is also reserved. At file scope, identifiers beginning with a single underscore are reserved too. In practice: do not start your own names with an underscore, and you will never collide with the library.
The standard library also claims many names — printf, malloc, strlen, FILE, NULL, errno, and hundreds more. Declaring your own function called printf may compile but will conflict at link time or shadow the library version, producing confusing bugs.
Keywords Versus Library Names
There is a real difference between a keyword and a library name. A keyword is part of the grammar: the compiler parses it specially and you cannot redefine it. A library name like printf is just an ordinary identifier declared in a header; the language does not forbid you from reusing the name, but doing so breaks the standard's rules and usually breaks your program.
So the practical rule is: never use a keyword, and treat every name from the standard headers as off-limits for your own declarations.
An Example
Suppose you write a small program that reads a temperature in degrees Fahrenheit, converts it to Celsius, and prints the result. A legal version might use these names: fahrenheit, celsius, convert, main. All are fine — none is a keyword, none starts with an underscore, none collides with a library name.
Now try to name the variable float or register: both are keywords, so the compiler rejects them. Try _Temp: it starts with an underscore followed by an uppercase letter, which the standard reserves, so avoid it even if your compiler happens to accept it. Try printf as a variable name: legal syntax, but it shadows the library function and any later call to printf in that scope will fail or misbehave.
Check the arithmetic while you are at it. If the input is 212 °F, the conversion is (212 − 32) × 5/9 = 180 × 5/9 = 100 °C. If the input is 32 °F, the result is (32 − 32) × 5/9 = 0 °C. If the input is −40 °F, the result is (−40 − 32) × 5/9 = −72 × 5/9 = −40 °C. Those three points are worth testing because they catch a wrong formula or an integer-division bug: writing 5/9 with integer operands gives 0, so the conversion must use floating-point values or write 5.0/9.0.
Choosing Names That Last
Because identifiers are yours to invent, the quality of your names matters more than any keyword rule. Use lowercase words joined by underscores (max_temp) or camel case (maxTemp), and pick one style for the whole project. Give a variable a name that says what it holds: celsius beats c, and item_count beats n in anything longer than a few lines.
Reserve all-uppercase names for macros and constants, a convention the library itself follows with names like NULL and EOF. That way a reader can tell at a glance whether a name is a compile-time substitution or a real object.
Avoid names that differ only in case or by one character, such as total and Total, or count and count1. They are legal but easy to mistype and hard to search for. Also avoid names that look like keywords — Int, FLOAT, While — since they invite confusion even though the compiler accepts them.
Checking a Word Before You Use It
If you are unsure whether a word is reserved, the fastest check is to try compiling a one-line declaration with that name. A keyword produces an immediate syntax error. A library name compiles but may warn or fail at link time, so also search the standard headers for the name before committing to it.
Keep a short list of the keywords on hand while you learn. The 32 original ones cover almost everything you will type in ordinary code, and the later additions are rare enough that you can look them up when a compiler error names one.