Hi All,
I am currently trying to create an array (called arrI) of 20,000 integers using the malloc() function, andI am doing the following condition:
If (arrI == NULL)
printf(“Not enough memory\n”);
To check that the memory has been allocated. Unfortunately I am receiving the message -> Not enough memory. Which in C means that the memory has not been allocated.
I tried setting the heap size but still kept getting the not enough memory error. Could you kindly guide on how to set the heap size in order to allow memory allocation for this size of array? I need to allocate memory dynamically for variables at run time.
Regards,
Josef