Home > Back-end >  C wild pointer
C wild pointer

Time:11-27

 
#include
#include
using namespace std;

Int main () {
Char * p, * p="hello world!" ;
coutP=p;
coutChar * p_start=p;
coutWhile ((* (p++)=* (p1 + +))!=0);

coutreturn 0;
}

how did this error???????

CodePudding user response:

P and p1 is not new and delete

CodePudding user response:

I tried, didn't complain, don't know what this code?

CodePudding user response:

(* (p++)=* (p1 + +))=write wrong?
  • Related