Solved

Operator Precedence and Associativity for * and /

Posted on 2006-11-16
1
202 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
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adjust Mfcapp 29 160
How to create frequencies of a variable from SAS dataset? 10 120
Intel debugger, idb, only seeing .c and .h, but no .f90 1 297
Resolve Dependency Issues 4 40
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…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

947 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

22 Experts available now in Live!

Get 1:1 Help Now