I always fail any design review using long, int, etc. Why they haven't been deprecated several decades ago is beyond me. Always specify the length of your variable exactly when you can, which is slightly harder with floating point of course which could do with a rename and also allow other storage lengths.If you are unaware, by using
#include <stdint.h>
you get definitions for int8_t ,int16_t ,int32_t ,int64_t and uintxx_t versions etc. Much more predictable than long/short/long long etc.
PeterO
Statistics: Posted by MikeDB — Fri Nov 01, 2024 4:53 pm