hot post

Arithmetic instruction in C (part 1) | c programming

Arithmetic instruction in C


hello friends,

In the c language learning series, we are seeing the use of printf() and scanf()from the last  part.  And now we will know about Arithmetic instruction in c  which is very important topic in c programming.

first we start with the famous topic of c programming which is "Operator"

Operator in Arithmetic instruction in c 

Arithmetic instruction in C (part 10)
operators

What is operator?

In Arithmetic instruction in c, operator are those symbol which perform its specific operation like addition, subtraction, multiplication and so on.
When we study math subjects then we use a lot of operator for example:
                       2+3
"+" is a operator
"2,3" is a operands/data
I think now you understand what is operator.
Without data/operands operator does not perform any function, data is very necessary for the function of operator

Now we learn about Arithmetic instruction in c :

What is Arithmetic instruction in c?


An instruction which is used to manipulate data using operators is known as Arithmetic instruction in c.
Now, let take an example and understand clearly:
                   3+4*5
The answer will be 23 and 35 also.But, we know that 35 is wrong answer it is because we study a math rule which is BODMAS. According to this rule answer is 23.
But, there is no BODMAS rule in c language.

In c language there are different rule which is given below:

operator group:


  • Unary operator

  • Arithmetic operator

  • Bit-wise operator

  • Relational operator

  • Logical operator

  • Conditional operator

  • Assignment operator

According to this series which is mentioned above, the problem will be solve in c language.
There is any mathematical operation in c language then it solve first Unary operator, second Arithmetic operator and so on.

In this post will study what is Arithmetic instruction in c.
In next part we will learn how these operator works?, definition of each operator and function of each operator

hope this will help you to understand c language 
thanks for reading my post please share this post and follow me to get latest post about c language

if you are new person then please see all parts of c language to understand better.
click on this link


Post a Comment

0 Comments