Keywords & Identifiers

  Keywords/Reserved words :

  •  It has predifined meaning and cannot be used for any other purpose in a C program.
  • 32 keywords are available in C.
  • They are always written in lower case.
Keywords
.auto .else .register .union
.break .enum .return .unsigned
.case .extern .short .void
.char .float .signed .volatile
.const .for .sizeof .while
.continue .goto .static .
.default .if .struct .
.do .int .switch .
.double .long .typedef .

Identifiers :

An identifier is a name used for a variable, constant or function.

Rules :

  • The first character should be an alphabet or on underscore(_).
  • Subsequent characters may be any combination of letters, digits or underscore.
  • Special characters are not allowed except underscore.
  • It can contain up to 31 characters.
  • Keywords cannot be used as identifiers.

Example :

mspvl, m2spvl - Valid

2mspvl, auto - Invalid

Keywords - Video:

Identifiers - Video:


From the Web

Suggestions: (1)
Loading...

See few results | more results

Search: [Press Enter]

Share |