Understand Grammar of C
As human need a language to
communicate with another human. Same in computer Science there is a language
that helps to communication between human and computer. Here we are using C
Language from many present language of Computer.
C language and English Language are
not different, that means if you want learn English then you should learn first
the alphabet or characters used in English, then integrate these alphabets to
make form, which in turn are integrated to make sentences and these sentences
make paragraphs. Learning C is similar and easy like English.
Therefore we should learn grammar
of C instead of straight away learning how to write programs which are
following here?
Steps in learning English Language:
ALPHABETS > WORDS > SENTENCES
> PARAGRAPH
Steps in Learning C Language
ALPHABETS, DIGITS AND SPECIAL
SYMBOLS >CONSTANT ,VARIABLE,KEYWORD > INSTRUCTION > PROGRAM
Character Set of C Programming
Here, character means any digit,
alphabet and special symbol that used to make necessary segments of program. Following
table are given which express the valid alphabet, digit and special Symbols
that allowed by C.
Alphabets
|
A,B …………………..Y,Z
A,b,……………….….y,z
|
Digit
|
0,1,2,3,4,5,6,7,8,9
|
Special Symbols
|
~ ‘ ! @ # % ^ & * ( ) _ - + = \ | { } [ ] : ; “
‘ < > ,
. ? /
|
Figure1
C’s Character what make
When we combine properly to
alphabet, numbers and special symbols then it form constants, variable and
keywords. The way alphabets form words in English. Now you think what are
constants, variables and keyword?
No comments:
Write comments