C Programming - Expressions - Discussion
|
|
|
|
Read more:"You cannot shake hands with a clenched fist."
- Indira Gandhi
|
| 2. |
Which of the following correctly shows the hierarchy of arithmetic operations in C? |
| [A]. |
/ + * - | [B]. |
* - / + | | [C]. |
+ - / * | [D]. |
/ * + - |
Answer: Option A
Explanation:
Simply called as BODMAS (Bracket of Division, Multiplication, Addition and Subtraction).
How Do I Remember ? BODMAS !
B - Brackets first
O - Orders (ie Powers and Square Roots, etc.)
DM - Division and Multiplication (left-to-right)
AS - Addition and Subtraction (left-to-right)
|
|
Kiran said:
(Thu, Jan 27, 2011 04:13:38 AM)
|
|
| |
Do you give more information about BODMAS. ?.
I want to know all hierarichies. |
|
|