Instructions to write C Program

C Instructions


Now that we have written a few programs let us look at the instructions that we used in these  programs. There are basically three types of instructions in C:
  1. Type Declaration Instruction
  2. Arithmetic Instruction
  3. Control Instruction

The purpose of each of these instructions is given below:

     Type declaration instruction
To declare the type of variables used in a C program.
           Arithmetic instruction
To perform arithmetic operations between constants and variables.
           Control instruction
To control the sequence of execution of various statements in a C program.


Since, the elementary C programs would usually contain only the type declaration and the arithmetic instructions; we would discuss only these two instructions at this stage. The other types of instructions would be discussed in detail in the subsequent chapters.

Popular posts from this blog

Rules for Constructing Character Constants

My Bisalpur- Population

How to bind dropdownlist inside gridview edit template