1 2 3 4 5 6 7 8 9
#include <stdio.h> int main() { const char array[] = "Hello"; char* pointer = "Hello"; printf("Array: %d - Pointer: %d", sizeof(array), sizeof(pointer)); return 0; }
1
Array: 6 - Pointer: 4