-->In C, there are 32 keywords, which have their predefined meaning and cannot be used as a variable name.
-->These words are also known as “reserved words”.
-->It is good practice to avoid using these keywords as variable name.
-->These are
if, else, switch, case, default – Used for decision control.
break – Used with any loop OR switch case.
int, float, char, double, long – data types related and used during variable declaration.
for, while, do – types of loop structures.
void – One of the return type.
goto – Used for redirecting the flow of execution.
auto, signed, const, extern, register, unsigned – defining a variable.
return – This keyword is used for returning a value.
continue – It is generally used with for, while and dowhile loops, when compiler encounters this statement it performs the next iteration of the loop, skipping rest of the statements of current iteration.
enum – Set of constants.
sizeof – It is used to know the size.
struct, typedef – Both of these keywords used in structures.
union – It is a collection of variables, which shares the same memory location and memory storage.
volatile-the volatile keyword is used to inform the compiler that the value of a variable may change at any time
No comments:
Post a Comment
Thank you Very Much.For Given Comment