C - Variable storage size (bytes)
Go to solution
Solved by Mira Yurizaki,
char, short, int, and long were the original names of integer data types. int and long can be different depending on the implementation of the compiler as int is only guaranteed to be at least 16-bit and long is only guaranteed to be at least 32-bit. That is to say the short and int data types can mean the same thing.
In any case, you shouldn't be using the original names for the data types. You should be using the C99 names as they are clear of the size and signage of the data type.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now