C

C is a general-purpose programming language. It has been closely associated with the UNIX system where it was developed, since both the system and most of the programs that run on it are written in C. The language, however,is not tied to anyone operating system or machine; and although it has been called a "system programming language" because it is useful for writing compilers and operating systems, it has been used equally well to write major programs in many different domains.

  • Section 01: Overview Of C

    This section covers a quick introduction to C. It covers the basic essential elements of the language. In this section the following are covered:

    1. To become familiar with the general form of a C program and the basic elements in a program
    2. To appreciate the importance of writing comments in a program
    3. To understand the use of data types and the differences between the data types int,double, and char
    4. To know how to declare variables
    5. To understand how to write assignment statements to change the values of variables
    6. To learn how C evaluates arithmetic expressions and how to write them in C
    7. To learn how to read data values into a program and to display results
    8. To understand how to write format strings for data entry and display
    9. To learn how to use redirection to enable the use of files for input/output
    10. To understand the differences between syntax errors, run-time errors, and logic errors, and how to avoid them and to correct them.

  • Section 02: Top-Down Design With Functions

    The emphasis here is to learn about functions and how to use them to write programs with separate modules. In this section the following are covered:

    1. To understand the capabilities of some standard functions in C
    2. To introduce structure charts as a system documentation tool
    3. To understand how control flows between function main and other functions
    4. To learn how to pass information to functions using input arguments
    5. To learn how to return a value from a function