Hi Devs,
I understand that const is a statement and #define is a preprocessor directive, but when should one use one or the other?
This is a discussion on When to use #define and const within the iPad Development forums, part of the iPad App Store category; Hi Devs, I understand that const is a statement and #define is a preprocessor directive, but when should one use one or the other?...
Hi Devs,
I understand that const is a statement and #define is a preprocessor directive, but when should one use one or the other?
In general if you are going the C++ route and you don't need a preprocessor, const is the way to go since it is cleaner.