Wednesday 18 April 2012

Instructions For c language

C Instructions consist of three types:




Type Declaration Instruction
Arithmetic Instruction
Control Instruction


Type Declaration Instructions


This instruction declares the type of variables which are used in the program. The variable used in the program must be declared before using it. The type declaration statement is written before the main() function.


Arithmetic Instruction


Arithmetic instruction has a variable name on the left hand side of = and variable names & constants on the right hand side of =. The variables and constants which are on the right hand side of = are connected by arithmetic operators like +, -, *, and /.


The variables and constants together are called ‘Operands.’ They are operated by the arithmetic operators and the result is assigned by the assignment operator to the variable on left-hand side.

0 comments: