Home > Back-end >  About the assignment of character pointer array, ask for help!
About the assignment of character pointer array, ask for help!

Time:03-30

 # include 
using namespace std;

Int main () {

Char * p []={" Hello ", "World"};

Cin. The get ();
}

Could you tell me why error when the p value assignment? See the tutorial can be such assignment (I am using Visual Studio 2019

CodePudding user response:

Will tell you why error messages,
So with const is ok,
  • Related