Design and Analysis of Algorithms 214.: Introduction To The C Programming Language
Design and Analysis of Algorithms 214.: Introduction To The C Programming Language
U.U.Samantha Rajapaksha
BSc. Eng. (Moratuwa), MSc in IT
Senior Lecturer
Sri Lanka Institute of Information Technology
New Kandy Road,
Malabe, Sri Lanka
Tel:0112-301904
email: samantha.r@sliit.lk
Web: www.sliit.lk
Utility programs
Compilers
Filters
Stage 3: Linking
Preprocessor
Compiler
Program Object Code File pgm.o
Other Object Code Files (if any)
Linker
are significant
May not begin with a digit
C is case sensitive.
Use all uppercase for symbolic constants (used in #define
preprocessor directives).
Note: symbolic constants are not variables, but make the program
easier to read.
Examples:
#define PI 3.14159
#define AGE 52
FF02 int
DAA 214 Lab 01 Sri Lanka Institute of Information Technology.
Notes About Variables.
You must not use a variable until you somehow give it a value.
You can not assume that the variable will have a value before
you give it one.
Some compilers do, others do not! This is the source of
declared.
The %f is known as a placeholder: it holds the place of the value of the variable
that we actually want to output.
specification.)
The address of where to store the information. (We can