C ++ programming language Please provide information about macros | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

C ++ programming language Please provide information about macros

29th Mar 2018, 9:28 PM
Farrukh Yuldoshev
Farrukh Yuldoshev - avatar
3 Answers
+ 1
「HAPPY TO HELP」 Nothing wrong with macros if implemented correctly. Just like global variables, saying they're bad practice is a fallacy born of misunderstanding the mechanics of C/C++. How would you prevent header duplication (in chains of dependencies) without them?
29th Mar 2018, 10:18 PM
non
+ 1
「HAPPY TO HELP」 I never heard about this doubles are bad thing to be honest. Where did you get told that and what was the reason? I heard the opposite here and there (don't use float, but double).
29th Mar 2018, 11:02 PM
Alex
Alex - avatar
+ 1
Thank you all very much:)
31st Mar 2018, 4:42 PM
Farrukh Yuldoshev
Farrukh Yuldoshev - avatar