Faizan Ali
contact:- 03235356409
email:- ali.faizan0009@hotmail.com
character:- It denotes any
alphabet, digit or special symbol used to represent information.
Use:- These characters can be combined to form variables. C uses constants, variables, operators, keywords and expressions as building blocks to form a basic C program.
Character set:- The character set is the fundamental raw material of any language and they are used to represent information. Like natural languages, computer language will also have well defined character set, which is useful to build the programs.
The characters in C are grouped into the following two categories:
1. Source character set
a. Alphabets
b. Digits
c. Special Characters
d. White Spaces
2. Execution character set
a. Escape Sequence
Use:- These characters can be combined to form variables. C uses constants, variables, operators, keywords and expressions as building blocks to form a basic C program.
Character set:- The character set is the fundamental raw material of any language and they are used to represent information. Like natural languages, computer language will also have well defined character set, which is useful to build the programs.
The characters in C are grouped into the following two categories:
1. Source character set
a. Alphabets
b. Digits
c. Special Characters
d. White Spaces
2. Execution character set
a. Escape Sequence
Source character set
ALPHABETS
Uppercase letters A-Z
Lowercase letters a-z
DIGITS 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
SPECIAL CHARACTERS
ALPHABETS
Uppercase letters A-Z
Lowercase letters a-z
DIGITS 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
SPECIAL CHARACTERS
Sy
|
Name
|
Sy
|
Name
|
Sy
|
Name
|
Sy
|
Name
|
~
|
tilde
|
>
|
greater than
|
*
|
asterisk
|
!
|
exclamationmark
|
%
|
percent sign
|
^
|
caret
|
\
|
back slash
|
,
|
comma
|
|
|
vertical bar
|
#
|
number sign
|
)
|
right parenthesis
|
{
|
left flower brace
|
@
|
at symbol
|
=
|
equal to
|
′
|
apostrophe
|
?
|
Question mark
|
+
|
plus sign
|
&
|
ampersand
|
:
|
colon
|
.
|
dot operator
|
<
|
less than
|
$
|
dollar sign
|
"
|
quotation mark
|
}
|
right flower brace
|
_
|
underscore
|
/
|
slash
|
;
|
semicolon
|
|
|
-
|
minus sign
|
(
|
left parenthesis
|
*
|
asterisk
|
|
|
Escape
Character set: Any
character interpreted with a blackslash (/) is known as escape sequence or
Escape character. e.g to insert new line
in program output user have to input (/n) in program code.
/a
|
Alram
|
/?
|
Question Mark
|
/b
|
Backspace
|
//
|
Backslash
|
/t
|
Tab
|
/r
|
Carriage Return
|
/n
|
Newline
|
/000
|
Octal Number
|
/”
|
Double quote
|
/xhh
|
Hexadecimal No
|
/0
|
The null Zero
|
|
|
/’
|
Single quote
|
|
|
0 comments:
Post a Comment