If uint8_t exists, then sizeof(uint8_t) must be 1. uint8_t is required to have width exactly 8 and no padding bits, and CHAR_BIT is required to be at least 8. If uint8_t exists, it can't have more than one char's worth of bits without violating these requirements.
First off, here is some code:
int main()
{
int days[] = {1,2,3,4,5};
int *ptr = days;
printf("%u\n", sizeof(days));
printf("%u\n", sizeof(ptr));
return 0;
}
Is there a way to find out the size of the array that ptr is pointing …