Christos
C++,
Help needed! Say I have this line here:
m = 10 * m + digit;
Which operation goes first? Multiplication or addition?



This Question is Closed

jeppe789
Best Response
You've already chosen the best response.
0
I think it's the chronological order unless you've made some kind of priorities in your other code.

Christos
Best Response
You've already chosen the best response.
0
what is the chronological order?

Christos
Best Response
You've already chosen the best response.
0
I havent made any priorities

jeppe789
Best Response
You've already chosen the best response.
0
The order it is written in, if you write * first, that operation goes first. If you write + first, that operation goes first.

hba
Best Response
You've already chosen the best response.
1
Well its gonna * first.

hba
Best Response
You've already chosen the best response.
1
Search on google:HIPO
i hope that will help :)

Christos
Best Response
You've already chosen the best response.
0
thank you

hba
Best Response
You've already chosen the best response.
1
welcome :)