3 ms·
> dynamically sized arrays Yes. What you can't do is associate bounds information with some specific pointer to an array, but this will work, for instance:
by moonchild 6y ago
> dynamically sized arrays
Yes. What you can't do is associate bounds information with some specific pointer to an array, but this will work, for instance:
int *x = malloc(2 * sizeof(int));
x[1]; //ok
x[2]; //runtime error