pavelion: I have defined a few macros for constant values. Some macros are dependent to another for example.So I wonder these values are going to be calculated at the run time? or they are going to be calculated when compiling and the final values will be put to the ex5 file. Also what about a for loops?
The macros are calculated at compile time but only for literal constants, not variables.
As for the loop, that is at runtime, but there may be some compiler optimisations being done under the hood, for which we are not aware.
pavelion:
I have defined a few macros for constant values. Some macros are dependent to another for example
So I wonder these values are going to be calculated at the run time? or they are going to be calculated when compiling and the final values will be put to the ex5 file.
Also what about a for loops?
You should use brackets on your macro expansions. You might get wrong results else.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have defined a few macros for constant values. Some macros are dependent to another for example
So I wonder these values are going to be calculated at the run time? or they are going to be calculated when compiling and the final values will be put to the ex5 file.
Also what about a for loops?