Hi all is the memory allocated for different types of variable say float, int and char is different for different architecture?
Thanks in advance.
Hi all is the memory allocated for different types of variable say float, int
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, definitely.
int, in particular, is particularly prone to that: old 8-bit and 16-bit architectures invariably had 16-bitints, while today’s 32-bit and 64-bit ones invariably use 32-bitints. That’s howintis defined to be — the “natural” size of integers for the architecture you’re compiling for!