This indicates group of characters
which are useful to write the programming statements. It contains 4 parts.
Alphabets
C language supports upper case letters (A to Z) (65-90),
But both are different. C is a case sensitive language.
Numeric digits
C language supports the numeric digits from 0 to 9 (48-57).Special Characters
The characters other than alphabets and numeric digits are called as special characters.
Special Character
|
Name
|
+
|
Plus
|
-
|
Minus
|
*
|
Asterisk
|
/
|
Slash/ forward slash
|
%
|
Modulator (percentage)
|
<
|
Less than
|
>
|
Greater than
|
=
|
Equal to
|
.
|
Full stop
|
,
|
Comma
|
;
|
Semi colon
|
:
|
Colon
|
‘
|
Single quotation
|
“
|
Double quotation
|
?
|
Question mark
|
$
|
Dollar
|
!
|
Exclamatory
|
|
|
Pipe or Bar(OR)
|
^
|
Cap (XOR)
|
&
|
Ampersand (AND)
|
(
|
Left parenthesis
|
)
|
Right parenthesis
|
[
|
Open square bracket
|
]
|
Close square bracket
|
{
|
Open brace
|
}
|
Close brace
|
\
|
Back slash or Reverse slash
|
/
|
slash
|
White spaces or Escape Sequences
Whitespaces are used to manipulate the output. There are 8 types of manipulators.
1. \n - New Line:- Cursor moves to the new line.
2. \t – Horizontal Tab:- It gives the 8 spaces in console.
3. \b – Backspace:- It erases the before character or space or number etc.
4. \r – Carriage Return:- Cursor moves to the line starting.
5. \f – Form feed:- It gives a form feed symbol.
6. \a – audible alert:- It gives a single beep sound.
7.\” – It print double quotes
8.\’- It print single quotes
2. \t – Horizontal Tab:- It gives the 8 spaces in console.
3. \b – Backspace:- It erases the before character or space or number etc.
4. \r – Carriage Return:- Cursor moves to the line starting.
5. \f – Form feed:- It gives a form feed symbol.
6. \a – audible alert:- It gives a single beep sound.
7.\” – It print double quotes
8.\’- It print single quotes
No comments:
Post a Comment