I need to allocate memory to a pointer variable passed by parameter.
#include <stdio.h>
#include <stdlib.h>
typedef int* PTR_VALUE;
int initialize(PTR_VALUE value_array)
{
value_array = (PTR_VALUE)malloc(sizeof(PTR_VALUE) * 94);
return 0;
}
int main()
{
PTR_VALUE pValue;
initialize(*pValue);
printf("%d", pValue);
gets("");
return 0;
}
but I get an error when I run the program.