dynamic memory allocation for array of structures in c code example
Example: dynamic memory allocation in c++
char* pvalue = NULL; // Pointer initialized with null
pvalue = new char[20]; // Request memory for the variable
char* pvalue = NULL; // Pointer initialized with null
pvalue = new char[20]; // Request memory for the variable