Confusion Concerning Int Data Type in C++

Viewed 48

I know that int is a 4-byte datatype. Since it only takes up 4 bytes in memory, why does the compiler pre-allocate or initialize 8 bytes worth of memory?

enter image here

0 Answers
Related