Quantcast
Viewing all articles
Browse latest Browse all 4928

C/C++ • Re: How long is a long integer on the various types of raspberryPi ?

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
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.

Statistics: Posted by MikeDB — Fri Nov 01, 2024 4:53 pm



Viewing all articles
Browse latest Browse all 4928

Trending Articles