Introduction to C Programming
What is a Computer Program? • Computer program is very much like an algorithm . • It may not be finite, program need not terminate a finite number of steps. • An example of such program is operating system. Two Components of Computer Program : 1. Data 2. Instructions for manipulating data A computer program is written using a certain computer programming language.
Computer Programming Language A programming language describes the: 1. Vocabulary (set of symbols and words) 2. Syntax (Rules) 3. Semantics (Meaning) that are used to write a valid computer program.
Types of Computer Programming Languages 1. Low-Level Languages • Machine language (lowest level, defined in terms of zero’s and one’s) • Assembly language (uses mnemonics) • They are called low-level because they require the programmers to have a good understanding of the underlying hardware for which the programs are intended to run. • Programs written using low-level languages are not portable, they cannot be executed in two different and incompatible processors
Types of Computer Programming Languages 2. High-Level Languages • FORTRAN, ALGOL, COBOL, PL/1, BASIC, Pascal, C++, Java • They are called high-level because the language is quasi- English and it does not require the programmer to know the actual computer hardware. • The programs written in high- level languages are able to exhibit portability.
The C Programming Language • The C programming language is a general purpose programming language. • It is mainly associated with systems programming , but theoretically it can be used for programming in different domains including scientific and business applications .
You've reached the end of your free preview.
Want to read all 24 pages?
- Fall '19