5 ms·
Arrays and pointers are most certainly not the same thing in C. Check yourself here: char x[100]; char* y = malloc(100*sizeof(char)); printf("Array
by Locke1689 15y ago
Arrays and pointers are most certainly not the same thing in C. Check yourself here:
char x[100];
char* y = malloc(100*sizeof(char));
printf("Array: %ld\nPointer: %ld\n", sizeof(x), sizeof(y));