samedi 28 octobre 2017

Initialize char* at the time of declaration using new operator

C++ Program

char *ptr=new char("char_pointer_initialization");

throws error Invalid conversion from 'const char*' to 'char' [-fpermissive]

Aucun commentaire:

Enregistrer un commentaire