NaveenArora
Programmer
Hi,<br>
I have small question<br>
1. i have heard one should never use #defines <br>
in c++. is it true ? if yes why ?<br>
2. if 1) is true then if i use const instead of #define<br>
wont it be more constly because #define<br>
will be replaced at compiler stage<br>
whereas const will occupy memory(read-only)<br>
or is compiler( i am using cfront one)<br>
every time intellegent enough to replace it<br>
based on context.<br>
<br>
Thanks
I have small question<br>
1. i have heard one should never use #defines <br>
in c++. is it true ? if yes why ?<br>
2. if 1) is true then if i use const instead of #define<br>
wont it be more constly because #define<br>
will be replaced at compiler stage<br>
whereas const will occupy memory(read-only)<br>
or is compiler( i am using cfront one)<br>
every time intellegent enough to replace it<br>
based on context.<br>
<br>
Thanks