Lesson 1: Introduction To C Programming
Lesson 1: Introduction To C Programming
Lesson 1: Introduction To C Programming
Introduction to C Programming
Background
High-level
1972
C++
Standard ANSI C
Institute)
Why C ??
Portable
PCs to mainframes
Speed
Intended used for developing OS
Efficient, compact & direct manipulations
Directly manipulate bits, bytes, words, pointers
High-level features
Structure methodology
Flexible
Many types of programming purposes
Run-time error checking
Array-boundary check, argument-type compatibility
Structure of C Program
(1)
main ()
{
local variable declaration list and initialization
statement 1;
.
.
.
statement n;
return 0;
}
user defined function(s)
Structure of C program
(2)
Preprocessor Directives
Always
File Inclusion
Simple C Program 1
Simple C Program 2