-
When is it appropriate to include a type conversion in a symbolic constant/macro, like this:
#define MIN_BUF_SIZE ((size_t) 256)Is it a good way to make it behave more like a real variable, with type checking?
-
When is it appropriate to use the
LorU(orLL) suffixes:#define NBULLETS 8U #define SEEK_TO 150L
When is it appropriate to include a type conversion in a symbolic constant/macro, like
Share
You need to do it any time the default type isn’t appropriate. That’s it.