Instructions in C Programming Language

There are three types of instructions in C. They are as follows:

1) Type Declaration Instruction
2) Arithmetic Instruction
3) Control instruction

Type Declaration instruction is used to declare the type of variables used in C. Any variable we want to use in the program must be declared before using it. This declaration is done using Type declaration instruction. This declaration is done at the beginning of the main() function.

Arithmetic instructions are used to perform arithmetic operations on variables and constants. Here we will learn some new terms. These are operands and operators. The variables and constants on which arithmetic operation is done by arithmetic operators are called operands.

Example 1:

a, b and c are called operands
=, + are called as operators

Example 2:

a is integer variable.
b, c and d are real variables.
= is the assignment operator.
+ and * are arithmetic operators.
10 is integer constant.
0.05 and 1.5 are real constants.

Control instruction is used to control the sequence (flow) of the program.

We write a program to perform a particular task. The program might be addition of two numbers, subtraction of two number or division of two numbers. Let us suppose that we need to write a program to perform all the above three operations i.e. addition, subtraction and multiplication. Writing three different programs is not feasible. If we do so, then for addition, subtraction and division we need to run the program separately. Instead of doing this, we can include decision control statement. Using this we can decide within the program whether to perform addition, subtraction or division. Thus program becomes efficient and user friendly too.

Using decision control statement, we can perform different actions based on the circumstances.

Decision control instructions:

1) The if statement
2) The if-else statement
3) The conditional operators
4) The switch statement

You may also like...

21 Responses

  1. Anonymous says:

    “a is integer variable.
    b, c and d are real variables.”

    I get why a, b, c and d are all variables. I also understand why a is an integer. Why are b, c and d “real variables”? Wouldn’t they be floats?

  2. Sam says:

    real is a synonym of float. Hence float can also be called as real variable.

  3. Anonymous says:

    Great site…

  4. LearnCOnline says:

    If you like the post then please Tweet it/ Digg it or click on like (Facebook) button above. It would be hight appreciable.

  5. Anonymous says:

    I love this website. Thanks again. Became fan on facebook. Click adds every time I visit a page. Anything else I can do please let me know.

  6. LearnCOnline says:

    Nothing else… Just spread the name 🙂 Thank you

  7. Anonymous says:

    thanks for a lot.i’ve so many confusion before learning c. but it’s o.k for me now.

  8. Anonymous says:

    = is not a assignment variable, but its an assignment operator. right.

  9. LearnCOnline says:

    Thanks a lot for correcting us. Appreciate it.

  10. abhiav says:

    tnx man the site helped a lot

  11. prasanth says:

    a good site i was wondering since so many days for a site like this…

  12. Anonymous says:

    super……… blog……

  13. Ibrahim Dal says:

    Anyone tell me how to download c compiler program for Windows & Ultimate 64-bit ?
    Remember C program not C++

    • Jon Ross says:

      I love the content on this site. I have to reference back when I need to see linked lists again. For the users that need a download-able C compiler, I found Tenacious C to be great, and it has a graphical display that shows pointers actually pointing to pieces of memory.

  14. Anonymous says:

    can 2.0 be a float?

  15. Anonymous says:


  16. can i get a help in learning a c program

  17. hello can i get a easy instruction in learning a c program

  18. Itz_me says:

    Anything with a dot within before or after a number is a float (or) real variable I know this sounds stupid since 2.0 is nothing but 2 right but the computer will consider 2.0 as a float variable .

Leave a Reply

Your email address will not be published. Required fields are marked *