probabilmente intendi
codice:
char* pstr = new char[22];
//e
char  pstr[22];