#include<stdio.h>
int main(int argc, char *argv[])
{
char *states[] = {
"California", "Oregon",
"Washington", "Texas"
};
printf("size of states: %d",sizeof(states));
return 0;
}
the result of this is:
size of states: 16
why is that?I know that an int is 4 bytes,while a char is 1 byte.I got confused why it's 16 and not 4.