C KEYWORDS – A BRIEF DESCRIPTION
DEFINITION OF C KEYWORDS
C KEYWORDS are those specific words that a C compiler already reserves in the library for doing certain tasks. Keywords are also known as RESERVED WORDS.
These words are known as KEYWORDS as they maintain a standard and have a Pre-explicate meaning in C. C Keywords are always written in LOWERCASE while using them in C programs.
TOTAL NUMBER OF C KEYWORDS..
In C Language, there are in-total 32 keywords available. Given below is the list of all the 32 keywords which we use in C programs.
Given above is the list of all the 32 C keywords which we use in C Language. Next, we will be describing and studying in detail about each and every keyword given in the Picture.
C KEYWORDS – INDIVIDUAL EXPLAINATION
Here we are going to describe and explain C KEYWORDS individually and Briefly..
1. AUTO KEYWORD –
auto Keyword defines a default storage class for all the local Variables which we use in a C program. The Storage class means the part of the memory in C where the variable would be stored.
We use auto Keyword for representing Automatic Storage Classes. There are a number of variables which we declare at the start of a block of a function. Those variables are known as Automatic Variables.
Keyword_name data_type Variable_name;
i.e. First we will write the keyword name “auto“. After that the data type that may be int, char, float, etc. And at last the variable name that may be of user’s choice.
auto int i;
In the Example, auto is the Keyword’s name. int is an integer data type. And i is the Variable name.
2. BREAK KEYWORD –
Sometimes, it becomes necessarily important to come out of the loop even before the loop’s condition becomes false. Therefore, we can apply break keyword inside the block in the program as it helps in terminating the loop.
break is one of the C keywords which we use for BREAK STATEMENTS. Usually, we apply break statements inside loops and switch statements. The statement causes an immediate exit from the loop in which the statement appears. The break statement is certainly written with a condition.
Whenever and wherever a compiler encounters break keyword in the program, it terminates the whole loop. After terminating, the control transfers to the statement immediately after the loop.
Consequently, we require no syntax for this Keyword. It is written as,
Above given is the flowchart of break statement..