I often see things in codes like 60*60 instead of 3600 . Are they both the same compiler? Is the precompiler replacing 60 * 60 with 3600 for you?
60*60
3600
Yes, constant expressions are evaluated at compile time.
To be completely correct, this is not required, but most compilers do this. Read about the permanent crease .
Source: https://habr.com/ru/post/1380268/More articles:An alternative for the switch statement when all possible cases are known? - javaParsing a string in MIPS - stringAndroid pdf opening doesn't work - javaSlow DNS lookup on iOS simulator - iosRSpec - how to stop a controller method - ruby-on-railsDisable replication for Hadoop job output only - hadoopHow to completely remove Rails Asset Pipeline - ruby-on-railsWhat is unit testing, and does it require writing code? - unit-testingCopying from one dynamically allocated array to another C ++ - c ++How to check if a sorted jquery list is sorted - jqueryAll Articles