Hi guys.
Welcome back.
In this section we will learn about operate as an expression C language an operator is a symbol that
tells the program to perform certain mathematical or logical operations are called C uprightness.
OK for example plus is an operator to perform addition C has a wide range of objects to perform various
operations.
OK they are arithmetic increment and increment operators relational practice assignment operators logical
operators.
OK so these are the different types of operators.
OK for example in anatomy there are two types or daddy in vanity blessed list means they do with help
of this operator we can increment the value of a variable by one but is it minus mean as we can determine
the value of a variable by one or plus means we can use this particular operate in order to perform
addition and minus subtraction minus means it has to perform this a fraction OK and so on.
OK so here basically the object here is base using this particular operators who are performing some
task OK so C supports this kind of this a wide range of 4 practice and not in order to get values during
the program execution.
Okay.
So first we will discuss about the automatic operators with the help of a program.
Okay.
And automatic operator performs mathematical operations at s addition subtraction multiplication division
on numeric values.
Okay.
So these are the operators.
So we will discuss further with the help of the program.
So how to use these operate and how to execute this.
Now in the program.
So please note this this is a very common one like this she's an addition.
This is my minus.
This is a fraction and started for the multiply slash.
This one it's for the tuition.
This is the model division model it means like for example like if you are trying to divide a value.
And for example.
Okay.
So to phys ed so the balances the remainder is one.
So reprint one in the second so.
Okay so we will discuss further with the help of programs and I think after that you'll better understand.
So this is our basic program using our practice.
Okay so we're going to perform this particular operation with the help of the operator.
So plus additions a fraction multiplication module division as well and see what we do without.
Okay.
So this part of the items we are discussing the less options will jump to the program.
Here is the main function as I told earlier like the program execution language task for me you'll hear
I have a three variables different variables.
Okay.
One variable e the second variable is beat the third variable is arithmetic output.
So there are three table variables.
Okay here is the declaration insulation.
So here E I struggled with the value of 15 B and stored the value of two and I have one more variable
called automatic output.
Okay so what I'm going to do here is I will try to keep and I'll try to execute this program with the
help of these operators.
Okay one by one.
Okay.
First is addition.
Right.
So we would like to add some less.
Okay.
So what I'm doing here is this is a declaration insulation.
So here I'm just storing the output of this operation to this particular indicator.
After that I'm just printing with the help of printer function.
I'm just printing this value in the second zone.
So since this is an integer that I am just printing with the help of a former specify yeah which is.
Okay so return 0 is it just informing the compiler mentioning that like it is a normal termination.
So what.
Let's see like what.
When you execute this program so what it happens is like 15 press to write sounded so the output should
be 70.
Okay.
Because you are just doing an additional addition sorry we're just doing an addition operation so.
So really I did this with this program and see what we do with the output.
Okay.
So I'm executing this or there's an error.
I've just started moving this and just putting the value here.
Okay.
So I'm just compiling again OK so arithmetic output is 17.
OK.
So if I'm just doing an addition operational here so in which 15 plus two is 17.
OK.
So it's printing.
OK OK.
Automating their computer now.
So no.
OK.
We have done with automatic operator and also we will look onto the second row which is this a fraction.
So we were just I will just use it here.
So know what I'm doing is a minus B which means 15 minus to do so which means it really should the output
should be 30.
OK.
We're just using the minus.
OPERATOR OK.
So we will compile this one and see what the output sedating.
OK so earlier we are then plus now we are then minus just the suppression of minus 2.
So 13 so the police car.
OK.
So now we will jump onto the third one which is and multiply.
So I'm just using them multiply.
OPERATOR So again I'm just compiling and executing.
So 15 to 30.
So the output is correct.
OK.
Within those attacking output is correct.
So we will move more to their.
L We will use the division on operating here.
So which means do so under 14.
Right.
So when I execute this one it should.
So seven C seven.
So this is the division operator.
OK so on to the 14th.
So so in is the output.
OK.
So we are done with plus minus multiplication and division.
Now we'll see the moderate division.
OK.
So
so model deviation means we just put this ditch
modular decision how it works is for example how many.
OK if you divide 15 by two right.
Someone closer to someone's F 14 OK.
Remainder 1 so that the main 3 will be printed in the second term.
OK.
So please note the remainder after division whatever the remainder is available.
That will be printed in the second and remainder 1 1 will be so that one will be printed printed here
actually.
OK so we'll try to execute this one and see what happens.
Automatic output is.
So this is how you can use operators are not automatic operator.
Oprah doesn't see language.
Thanks for watching this video.
I'll catch you guys in the next lesson.
Bye for now.