C Programming: Constants, Variables, and Keywords
UG
BMLabs Mathematics
REPOSITORY
SCAN TO READ FULL UNIT
C ProgrammingIntroduction to C ProgrammingC Programming: Constants, Variables, and Keywords
Constants Variables and Keywords in C
Why These Three Ideas Come First
In this lecture, we shall learn constants variables and keywords in C. These are three very small but very important ideas of C programming.
A student should not hurry to write a full C program before understanding these three ideas. Given that C is a programming language, it uses some fixed values, some names for memory locations, and some reserved words.
A constant is a fixed value.
A variable is a named place where a value can be stored.
A keyword is a reserved word that already has a special meaning in C.
So, constants, variables and keywords in C are the first building blocks of the language.
See the Three Building Blocks
Building Block Map connects the three beginner ideas of C with their main meanings. Click Constant, Variable, Keyword, or Show All to focus on one part of the map. Notice that a constant is a fixed value, a variable is a named memory place, and a keyword is a reserved word. This matters because a student can read simple C statements more calmly after separating values, names, and reserved words in the mind.
BMLABS MATHEMATICS REPOSITORY
mathematics.bmlabs.co.in
Author
Dr. Bivash Majumder
Assistant Professor in Mathematics
Prabhat Kumar College, Contai