* . , , * .
, char , 'a' 'Z'.
char * , char char.
int , 1 12345.
int * , int int.
.
:
char* pchar = new char[5];
This allocates a 5 * sizeof (char) memory zone and allows you to access 5 characters.
Remember to free up memory when your pointer is no longer needed.
delete pchar;
source
share