Keywords in C Programming

Keywords mean the reserved words of C programming Language which are part of the syntax.

Character set

A character set is a set of alphabets, letters, and some special characters that are valid in C language.

Alphabets

Uppercase: A B C ................................... X Y Z

Lowercase: a b c ...................................... x y z

C accepts both lowercase and uppercase alphabets as variables and functions.


Digits

0 1 2 3 4 5 6 7 8 9

 

Special Characters in C Programming

 

Special Characters in C Programming

,

< 

> 

.

_

(

)

;

$

:

%

[

]

#

?

'

&

{

}

"

^

!

*

/

|

-

\

~

+

 


White space Characters 

Blank space, newline, horizontal tab, carriage, return, and form feed.

C Keywords

Keywords are predefined, reserved words used in programming that have special meanings to the compiler. Keywords are part of the syntax and they cannot be used as an identifier. For example: 

int money;

Here, int is a keyword that indicates money is a variable of type int (integer).

As C is a case sensitive language, all keywords must be written in lowercase. Here is a list of all keywords allowed in ANSI C.

C Keywords

C Keywords

auto

double

int

struct

break

else

long

switch

case

enum

register

typedef

char

extern

return

union

continue

for

signed

void

do

if

static

while

default

goto

sizeof

volatile

const

float

short

unsigned


Comments

Popular posts from this blog

Definition of C Language

Data Types in C Programming