sizeof(char) == 1
Other than that, there is no fixed size of the data type.
I don't have to
This means that there is no guarantee that sizeof(char*)
== sizeof(int*)
.
Typically, on a 16-bit system, the pointer size is 2 On 32-bit systems, 4, On 64-bit systems, it is 8.
But it's not set as the C/C++ standard There is no way to determine the exact size of the pointer until you turn it around on your computer
© 2024 OneMinuteCode. All rights reserved.