Answer the question
In order to leave comments, you need to log in
What kind of memory are we talking about in this piece of code?
void f(){
int* x = malloc(10 * sizeof(int));
x[10] = 0;
}
Answer the question
In order to leave comments, you need to log in
The teacher says that 10 is not in the memory range. You can enter a number in square brackets from 0 to 9.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question