Categories
b. Variables and Keywords

List of standard keyword in C programming language

Data typesQualifiers User-definedStorage ClassesLoopDecisionJumpDerivedfunctionOther
intsignedenumexternforifgotostructvoidconst
charunsignedregisterwhileelsecontinueunionreturnvolatile
floatshortstaticdoswitchbreaksizeof
doublelongautocase
default

Brief introduction of standard keywords and their specification:

Data type Keywords:

intSpecifies the integer type of value a variable will hold
charSpecifies the character type of value a variable will hold
floatSpecifies the single-precision floating-point of value a variable will hold
doubleSpecifies the double-precision floating-point type of value a variable will

Qualifier Keywords:

signed  Specifies a variable can hold positive and negative integer type of data
unsignedSpecifies a variable can hold only the positive integer type of data
shortSpecifies a variable can hold fairly small integer type of data
longSpecifies a variable can hold fairly large integer type of data

Loop Control Structure Keywords

forLoop is used when the number of passes is known in advance
whileLoop is used when the number of passes is not known in advance
doLoop is used to handle menu-driven programs

User-defined type Keywords

typedefUsed to define a new name for an existing data type
enumGives an opportunity to invent own data type and define what values the variable of this data type can take

Jumping Control Keywords

breakUsed to force immediate termination of a loop, bypassing the conditional expression and any remaining code in the body of the loop
continueUsed to take the control to the beginning of the loop bypassing the statements inside the loop
gotoUsed to take the control to required place in the program

Leave a Reply

Your email address will not be published. Required fields are marked *