Friday, July 29, 2016

C Basics - Character Set in C

We must first know what alphabets, numbers and special symbols are used in C, then how using them constants, variables and keywords are constructed, and finally how are these combined to form an instruction. A group of instructions would be combined later on to form a program.

A character denotes any alphabet, digit or special symbol used to represent information.

Alphabets: a to z, A to Z

Digits: 0 to 9

Special Characters:
~ tilde ! exclamation mark @ at symbol
# number sign $ dollar sign % percent sign
^ caret & ampersand * asterisk
( left parenthesis ) right parenthesis _ underscore
- minus sign + plus sign = equal to
| vertical bar \ back slash } right flower brace
] right bracket { left flower brace [ left bracket
quotation mark apostrophe : colon
; semicolon ? Question mark / slash
> greater than . dot operator < less than
, comma

The alphabets, digits and special symbols when properly combined form constants, variables and keywords.

Related topics:
Tokens in C   |   White Space Characters in C   |   Trigraph Characters in C   |   Extended Characters in C   |   Escape Sequence in C   |   Comments in C   |   Keywords in C   |   Identifiers in C   |   Declaration in C

List of topics: C Programming

No comments:

Post a Comment