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:
- Type Declaration Instruction
- Arithmetic Instruction
- 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.
Conversion Conversion Emoticon Emoticon