dynamically allocated memory 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