0

Can you explain why the result is 28 . Thanks in advance

https://code.sololearn.com/cxpLxznDCB8W/?ref=app

12th Aug 2019, 8:05 AM
Spring
2 odpowiedzi
+ 3
#define is a macro which is when used in a code, it is replaced. So your expression will become 28 / 4 * 4 Precedence of multiplication and division is same so the expression will be evaluated from left to right. As 28 / 4 = 7 Now expression will be 7 * 4 which is equal to 28
12th Aug 2019, 8:17 AM
blACk sh4d0w
blACk sh4d0w - avatar
+ 1
Thank bro.
12th Aug 2019, 10:33 AM
Spring