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
L
orU
(orLL
) suffixes:#define NBULLETS 8U #define SEEK_TO 150L
256
本身也会有一个类型。 - potrzebie