Keywords in C Programming Language :

Keywords are predefined, reserved words used in programming that have a special meaning. Keywords are part of the syntax and they cannot be used as an identifier.

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 : Defines a local variable as having a local lifetime.

break : Passes control out of the compound statement.

Const : Makes variable value or pointer parameter unmodifiable.

Continue : Passes control to the begining of the loop.

do :Do-while loop.

enum : Defines a set of constants of type int.

extern : Indicates that an identifier is defined elsewhere.

float, double : Floating point data types.

for : For loop.

goto : Unconditionally transfer control.

if, else : Conditional statement.

int, char : Basic data types (integer and character).

register: Tells the compiler to store the variable being declared in a CPU register.

return : Exits the function.

short, long, signed, unsigned : Type modifiers.

sizeof : Returns the size of the expression or type.

static : Preserves variable value to survive after its scope ends.

struct : Groups variables into a single record.

switch, case, default : Branches control.

typedef : Creates a new type.

union :Groups variables which share the same storage space.

void : Empty data type.

volatile : Indicates that a variable can be changed by a background routine

while  : Repeats execution while the condition is true





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s