Reflection: Operators

After researching about operators, I have learned somethings.
I, Summary
A simple expression consists of an operator and operand(s):
- The ALU receives the operator from the Control Unit.  The operator may be:
     + arithmetic 
     + relational 
     + logical.

II, Applied to solve problems
Calculate value of expression: 

There are some expressions by myself: 





Then, I write a program to check my result: My results are right.

link product: bt.cpp


III, Some of my thoughts
Sometime, I had some mistakes. I forgot the order to calculate, the difference between binary and unary, then my results are wrong. I think we should remember the the order to calculate before solving expression. 

To calculate the expression isn't difficult. Just remember the operator what they are, and their order, you can calculate any expression you want.


There is a mind map about Operators in C

You can click on each branch to see a clear way each root.


Comments

Popular posts from this blog

Reflection: Scope Variables

Những lợi ích của việc dùng email edu cho developer

Reflection: Pointer