Show Menu
Cheatography

C tokens Cheat Sheet (DRAFT) by

•smallest individual components of a program that are relevant to the operation of a compiler. •Every punctuation mark and word in a C program is a token. • A compiler converts a C program into token before moving on to the next steps of the compilation process. • In C Programming, tokens are of six types. They are: 1.keywords 2.identifiers 3.constants 4.strings 5.special symbol 6.operators

This is a draft cheat sheet. It is a work in progress and is not finished yet.

KEYWORDS

• C keywords are the words that convey a special meaning to the c compiler
•There are 32keywords in C.
•C keywords are also called as Reserved Words.

Identifier | Valid or invalid identi­fiers

Rules:
• They must begin with a letter or underscore (_).
• It should not be keyword.
• It should be up to 31 characters long as only first 31 characters are signif­icant.

Identifier | Valid or invalid identi­fiers

Rules:
• They must begin with a letter or underscore (_).
• It should not be keyword.
• It should be up to 31 characters long as only first 31 characters are signif­icant.