Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Operator Precedence and Associativity for * and /

Posted on 2006-11-16
1
Medium Priority
?
238 Views
Last Modified: 2010-04-15
If I have an equation:

X = A * B / C * D * E

Will that be calculated as:

1) X = ((A * B) / C) * D * E

or

2) X = (A * B) / (C * D * E)
0
Comment
Question by:GivenRandy
1 Comment
 
LVL 37

Accepted Solution

by:
momi_sabag earned 2000 total points
ID: 17958706
the first one is correct
you check it here
http://www.difranco.net/cop2220/op-prec.htm

but the best way to check it, is just run a program that does both...

momi
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Suggested Courses
Course of the Month20 days, 17 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question