There is a sizable following for the structured, procedural programming language C in the academic world, and it has been used extensively for operating systems and applications. Operating systems built on UNIX frequently use C as their primary programming language.
A reserved term is a keyword. It cannot be used as a variable, constant, or other types of name. There are only 32 reserved words (keywords) in the C language. A programming language typically refers to keywords as pre-defined or reserved words. Every keyword in the C programming language has a specific job to do in a program.
Characteristics of the keywords in C Programming:
- It is not possible to name variables using keywords.
- The meaning of a keyword is set and cannot be altered.
- They serve as the foundation of a “C” program.
- C offers 32-keyword support.
- Lowercase letters are used for all of the keywords.
List of keywords in C Programming and their meanings:
- Auto: used to represent automatic storage class
- Break: unconditional control statement used to terminate switch and looping statements
- Case: used to describe a case or option in a switch statement
- Char: used to represent a character data type
- Const: used to define a constant
- Continue: unconditional control statement used to pass the control to the beginning of looping statements
- default: used to represent a default case or option in a switch statement
- Do: used to define do a block in the do-while statement
- Double: used to present double data type
- Else: used to define a false block of an if statement
- Enum: used to Define enumerated data types
- Extern: used to represent external storage class
- Float: used to express a floating-point data type
- For: used to define a looping statement
- Goto: used to represent unconditional control statement
- If: used to determine a conditional control statement
- Int: used to describe the integer data type
- Long: a type modifier that alters the primary data type
- Register: used to represent register storage class
- Return: used to terminate a function execution
- Short: it is a type modifier that modifies the primary data type
- Signed: it is a type modifier that changes the primary data type
- Sizeof: it is an operator that gives the size of the memory of a variable
- Static: used to create static variables constants
- Struct: used to build structures of user-defined data types
- Switch: used to define switch case statement
- Typedef: used to specify a temporary name for the data types
- Union: used to create Union for grouping different types under a name
- Unsigned: it is a type modifier that alters the primary data type
- Void: used to indicate nothing return value, the parameter of a function
- Volatile: used to create volatile objects
- While: used to define a looping statement
Now that you know the 32 keywords in C programming that are used, try them out to construct C program instructions!
Also, do read our post on C/C++ Pointers vs. Java References – What’s the Difference?