Please enable JavaScript.
Coggle requires JavaScript to display documents.
Basics of C Unit-2 - Part-1 (TOKENS (Constants (Numeric constants (Integer…
Basics of C Unit-2 - Part-1
CHARACTER SET
Alphabets
Uppercase: A B ... Z
Lowercase: a b .... z
Digits
0 1 2 3 4 5 6 7 8 9
Special Characters
< >
,
;
:
?
'
"
*
^
&
$
%
{ }
( )
[ ]
/
\
~
_
White space / Backslash Characters
\b - backspace
\f - form feed
\n - new line
\r - carriage return
\t - horizontal tab
\v - vertical tab
\? - Question mark
\a - Beep
\0 - Null
TOKENS
Keywords
32 Keywords supported by ANSI C
auto
double
int
struct
break
else
long
long
switch
case
enum
register
typedef
char
char
extern
return
union
const
float
short
unsigned
continue
for
signed
void
default
goto
sizeof
volatile
do
if
static
while
Constants
Numeric constants
Integer constants
Decimal
Octal
Hexadecimal
Real constants
Ex: 152; 450.75; 2e4
Fractional form
Exponential form
Character constants
String constants
Variables
Ex: name; branch; marks; sum; sub
Operators
Ex: + ; - ; / ; %
Special Characters
Ex: { } ; [ ]; ( );
|
Mind Map Prepared by - Srinivas Adapa, Associate Professor, CSE Department, CITM