3 Introduction_to_C_Programming_for_BSCS.pdf - Introduction to C Programming What is a Computer Program \u2022 Computer program is very much like an

3 Introduction_to_C_Programming_for_BSCS.pdf - Introduction...

This preview shows page 1 - 7 out of 24 pages.

Introduction to C Programming
Image of page 1
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.
Image of page 2
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.
Image of page 3
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
Image of page 4
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.
Image of page 5
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 .
Image of page 6
Image of page 7

You've reached the end of your free preview.

Want to read all 24 pages?

  • Fall '19

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture