STEPS FOR EXECUTING THE PROGRAM
STEPS FOR EXECUTING THE PROGRAM
Creation of program
Programs should
be written
in C
editor. The
file name
does not
necessarily
include
extension
C. The default extension is C.
Compilation of a program
The source
program
statements
should be
translated
into object
programs
which is
suitable for execution by the computer.
The translation is done after correcting each statement. If there is
no error, compilation proceeds and translated program are stored in
another file with the same file name with extension
“.obj”.
Execution of the program
After the compilation the executable object
code will be loaded in the computers main memory and the program is
executed.
l.9
C
CHARACTER SET
- LettersDigitsWhite SpacesCapital A to ZAll decimal digits 0 to 9Blank spaceSmall a to z
Horizontal tab
Vertical tab
New line
Form feed
Special Characters
- ,Comma&Ampersand.dot^Caret;Semicolon*Asterisk:Colon-Minus'Apostrophe+Plus
- "Quotation mark<Less than!Exclamation mark>Greater than|Vertical bar()Parenthesis left/right/Slash[ ]Bracket left/right\Back slash{}Braces left/right~Tilde%Percent_Underscore#Number sign or Hash$Dollar=Equal to?Question mark@At the rate
- DELINITERS
- DelimitersUse: ColonUseful for label; SemicolonTerminates the statement( ) ParenthesisUsed in expression and function[ ] Square BracketUsed for array declaration{ } Curly BraceScope of the statement# hashPreprocessor directive, CommaVariable separator
- C KEYWORDS
- AutoDoubleIntStructBreakElseLongSwitchCaseEnumRegisterTypedefCharExternReturnUnionConstFloatShortUnsignedContinueForSignedVoidDefaultGotoSizeofVolatileDoIfStaticwhile
- IDENTIFIERS
Identifiers are names of variables, functions,
and arrays. They are user-defined names, consisting sequence of
letters and digits, with the letter as the first character.
- CONSTANTS
Values do not change during the execution of
the program Types:
Numerical constants:
- Integer constants
These
are the sequence of numbers from 0 to 9 without decimal points or
fractional part or any other symbols. It requires minimum two bytes
and maximum four bytes.
Eg:
10,20, + 30, – 14
- Real constants
It
is also known as floating point constants. Eg: 2.5, 5.342
Character constants:
- Single character constants
A
character constant is a single character. Characters are also
represented with a single digit or a single special symbol or white
space enclosed within a pair of single quote marks
Eg:
‘a’, ‘8’, “
”.
- String constants
String
constants are sequence of characters enclosed within double quote
marks. Eg: “Hello”, “india”, “444”
No comments
Post a Comment