Keywords and Identifiers in C
Keywords are words C owns permanently — int, if, return, while, struct, and roughly 30 others (a few more per standard) — and they can never be reused as names. Identifiers are the names you invent: they must start with a letter or underscore, followed by letters, digits, or underscores.
C is case-sensitive, so total, Total, and TOTAL are three different names. Leading underscores are reserved territory (library and compiler internals use them), so never invent identifiers like _Foo or __bar — your code can silently collide with the implementation.
What counts as a keyword
A fixed reserved word such as int, for, struct, or return — always meaningful, never usable as a variable or function name.
What counts as an identifier
Any name you invent, starting with a letter or underscore, continuing with letters, digits, and underscores.
Case sensitivity
count and Count are completely different identifiers — pick one style and stay consistent.
Reserved patterns
Leading double underscores and leading underscore plus capital belong to the implementation — treat them as off-limits.
#include <stdio.h> int main(void) { int player_score = 10; int Player_score = 20; printf("%d vs %d\n", player_score, Player_score); return 0;}Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
Practice what you learned
Re-implement each visualized algorithm in C yourself — building beats watching.