Can someone explain me why I can't do something like that?
int* arr1 = malloc(sizeof(int));
static int* arr2 = malloc(sizeof(int));
int main() {
return 0;
}
What is the reason that I get in this case compilation error?
initializer element is not constant