2. C language
C is a general purpose structured powerful modern language. It is a high level language and
low level too.
This language was designed for developing fast, reliable , efficient, economical and portable
system software.
Built-in functions
More operators then other
Simple to learn
3. Algorithum
a sequence of instructions designed in such a way that if the instructions are executed in some specified sequence,
the desired result will be obtained.
Ex:-
STEP 1 : INPUT a, b,
STEP 2 : sum = a+b
Step 3 = Write “Sum of two number”, SUM
Step 4 = END
4. Compiler and Interpreator
Compiler converts all the source code into machine code, creating an
executable file.
As interpreter also converts source code to machine code and it done only a
line at a time
5. Character set
Character set means that the characters and symbols that a C program can
understand and accept. These are grouped from the commands, expressions, words,
co-statements and other tokens for C language.
Character set is the combination of alphabet, digit, special characters and white
space.
EXAMPLE= ,..,/,;,’,[,], and so on.
Characterset
Letter
digit
Empty space
character
Special
character
6. Keywords and identifiers
There are mainly 40 keywords among which 32 are used by many C-compilers.
Example= auto, char, break, case, goto, int, return, if, float and many more.
“INDENTIFIERS” are some words or name which identify whether it is a
constant or variable.
7. TOKENS
the blank space are called tokens. In c program all the C- statements having keywords, identifiers, constant, strings,
operators and special symbols are called c-tokens.
For example , some C-tokens used in a c-programing are:
Reverse words: float, do, if etc
Constant : 300.9, 20.99, -098 etc
Strings: “raman”, “2002-03”etc
Operators: +,=,-,<> etc
Special symbols:{},[],() @, #, $, % etc
8. Identifiers
Iis a string of alphanumeric characters
. They are used to name variables, arrays, functions.
It begins with the alphabetic character.
Must not contain white space
Connot use keyword as identifiers
10. Literal or constant
Whose value cannot change during program execution.
Commas and blanks spaces cannot be included
E.g= 12,1.2,0XF and so on