More about Variables and Operators
When we are declaring a variable, we should know about the art of the programming. We can declare a variable like below.
And we can assign some values as to the variable and run it. There is an example which I am going to explain below.
Here we have assigned some values to the Variable few times and what will be the result?
When reading and printing code, basically using this kind of computer program code, it will take the final value as the result, as a result of that the answer will be , so printf function will display 500 here.
There some other you should know about programming. I have declared a variable and assign some values below.
You know the answer is
And also you can do it like below, and it will be the same answer
The answer is also .
You can try, there are two examples which I have given you below and understand it.
As above, we can use it with other operators also.
These operators are more useful
Now you know how to use them and try those with your own codes.