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 please explain the logic?
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 please explain the logic?