Tuesday 19 August 2014

Introduction to C Language



Introduction:

                          A language represents set of symbols along with the rules to be followed while using these symbols.
                                                Language = Symbols + Rules

--> The rules are referred as "SYNTAX".
-->A Program represents set of sequence of instructions (or) commands (or) Statements which perform a pre-defined task.
--> A computer can understand only 0's(zero) and 1's(one). So, any symbol what we store in a computer should be converted ti 0's and 1's.
--> But it is not possible to convert a symbol directly to 0's and 1's. So, each and every symbol is given a unique identification, which is a number and is referred as "ASCII"(American Standard Code for Information Interchange) value.
--> All together we have 256 Symbols and so, 256 ASCII values ranging from 0,1,2,-------255.

ASCII Values for A-Z:

A - 65
B - 66
C - 67
D - 68
E - 69
F - 70
G - 71
H - 72
I - 73
J - 74
K - 75
L - 76
M - 77
N - 78
O - 79
P - 80
Q - 81
R - 82
S - 83
T - 84
U - 85
V - 86
W - 87
X - 88
Y - 89
Z - 90

ASCII values for a-z:

a - 97
b - 98
c - 99
d - 100
e - 101
f - 102
g - 103
h - 104
i - 105
j - 106
k - 107
l - 108
m - 109
n - 110
o - 111
p - 112
q - 113
r - 114
s - 115
t - 116
u - 117
v - 118
w - 119
x - 120
y - 121
z - 122

ASCII for for 0-9:

0 - 48
1 - 49
2 - 50
3 - 51
4 - 52
5 - 53
6 - 54
7 - 55
8 - 56
9 - 57



0 comments:

Post a Comment