i try to allocate a char array with malloc but the size is always "8" :
char *d = malloc(2356 << 1);
printf("size of *d: %d\n", sizeof(d));
output: size of *d: 8
char *d = malloc(2356 * sizeof(*d);
printf("size of *d: %d\n", sizeof(d));
output: size of *d: 8
char *d = malloc(2356 * sizeof(char));
printf("size of *d: %d\n", sizeof(d));
size of *d: 8
Please help me, what's is wrong with my code?
Thanks!