Keywords in C Language
Definition:-
The word has pre-defined meaning is called keywords.
Therefore Reserve words can not be used as identifiers or variables.
Keywords in C-Language are:-
There are 32 keywords in C-Language:-
auto double int struct
break else long switch
case enum register typedef
char extern return union
const float short unsigned
continue for signed void
default goto sizeof volatile
do if static while
auto :-
This keyword is used to declare a local variable that is automatically initialized when it is declared.
double:-
The double keyword in the C language is used to declare a variable that can store a double-precision floating-point number.
int:-
The int keyword in the C language is used to declare a variable that can store an integer value.
struct:-
The struct keyword in the C language is used to declare a structure, which is a user-defined data type that can store multiple values of different data types in a single unit.
break:-
The break keyword in the C language is used to terminate a loop or switch statement and transfer control to the statement immediately following the loop or switch.
else:-
The else keyword in the C language is used to execute a statement or block of statements if the condition in an if statement is false.
long:-
The long keyword in the C language is used to declare a variable that can store a long integer value.
switch:-
The switch keyword in the C language is used to create a switch statement, which is a control structure that allows a program to execute different code depending on the value of a given expression.
case:-
A case statement is a control structure used to execute different blocks of code based on the value of an expression.
enum:-
An enum is a keyword used to declare an enumerated type, which is a type consisting of a set of named integral constants.
register:-
The register keyword is used to declare a variable as a register variable, which is a type of local variable that is stored in the CPU register instead of in RAM.
typedef:-
The typedef keyword is used to create an alias or synonym for an existing data type. It is used to create a new name for an existing type, which can then be used to declare variables of that type.
char:-
The char keyword is used to declare a variable of type char, which is a data type used to store a single character.
extern:-
The extern keyword is used to declare a variable or function that is defined in another source file. It is used to make the variable or function available to other source files.
return:-
The return keyword is used to return a value from a function. It is used to exit the function and return a value to the calling function.
union:-
The union keyword is used to declare a union, which is a user-defined data type that can store multiple values of different data types in the same memory location.
const:-
The const keyword is used to declare a constant, which is a variable whose value cannot be changed once it is assigned.
float:-
The float keyword is used to declare a variable of type float, which is a data type used to store real numbers with decimal points.
short:-
The short keyword is used to declare a variable of type short, which is a data type used to store small integers.
unsigned:-
The unsigned keyword is used to declare a variable of type unsigned, which is a data type used to store only positive integers.
continue:-
The continue keyword is used to skip the current iteration of a loop and continue with the next iteration.
for:-
The for keyword is used to declare a loop that will execute a set of statements a specified number of times.
signed:-
The signed keyword is used to declare a variable of type signed, which is a data type used to store both positive and negative integers.
void:-
The void keyword is used to declare a function or variable that has no return type or value.
default:-
The default keyword is used to declare a default case in a switch statement, which is executed if none of the other cases are matched.
goto:-
The goto keyword is used to jump to a different part of the code, bypassing any intervening code.
sizeof:-
The sizeof keyword is used to determine the size of a data type or variable in bytes.
volatile:-
The volatile keyword is used to declare a variable that can be modified by an external source, such as an interrupt handler or a signal handler.
do:-
The do keyword is used to declare a loop that will execute a set of statements until a condition is met.
if:-
The if keyword is used to declare a conditional statement, which will execute a set of statements if a condition is met.
static:-
The static keyword is used to declare a static variable, which is a variable that retains its value between function calls.
while:-
The while keyword is used to declare a loop that will execute a set of statements while a condition is met.
Comments