Solved

Operator Precedence and Associativity for * and /

Posted on 2006-11-16
1
191 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 500 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now