What are some safe sized datatypes? Inother words, stuff like size_t, uint32_t. They don't seem to change no matter what machine I use. I'm asking because the confusion comes in here:
I'm not sure when to use long vs int. I did a sizeof(int) and sizeof(long) and they are both 4 bytes and I'm on a 64bit machine. Now I always though long would be 8 bytes or hold larger sized integers but this is not the case. This goes the same for long double and double. They seem to also be the same size whereas I though long double would be larger.
Are there any large integral data types that are guaranteed?