Professional Documents
Culture Documents
Introduction to C Programming
A Brief History of the C Language
• C evolved from two previous languages, BCPL and B by
Dennis Ritchie at Bell Laboratories.
• C became widely known as the development language of
the UNIX operating system.
• Different organizations began utilizing their own versions
of C which started to cause a serious problem for
programmers who needed to develop a code that would
run on several platforms.
• American National Standards Institute (ANSI) formed a
committee in 1983 to establish a standard definition of C,
which became known as ANSI Standard C.
Why Use C?
• C is a powerful computer programming language. It
allows direct access to memory and many low-level
computer operations. It is used for projects as diverse as
operation systems (OS), word processors, and even
compilers for other languages.
• C is a portable language. C programs, once compiled into
executables, can be transferred to other similar machines
• Most of the things you learn with C will be directly
transferable to future programming languages.
• C has a syntax very close to MATLAB, making the
transistion easy.
Computers: Hardware and Software
• Computer - is a device the can perform computations and
make logical decisions billions of times faster than human
beings can. The process data under the control of sets of
instructions called computer programs.
Basic Computer
Organization
Typical C Program Development Environment
• Examples:
• a = 2, b = 3, c = 7, x = 5
Decision Making: Equality and Relational Operators