How does a char * figure out to be 4? I am using a VC++, and a Windows 98 OS. This is the code:
int main()
{
printf("%d", sizeof(char*));
}
result is 4
int main()
{
printf("%d", sizeof(char));
}
result is 1
char is one byte
char* is 4 bytes.
Could someone...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.