Are the following assignments valid? Or will any of these create problems. Please suggest.
const char * c1;
const char * c2;
const char * c3;
char * c4;
c2 = c1;
c2 = c3;
c2 = c4;
What if I do the following, is that ok thing to do?
const char * c5 = "xyz";
char * c6 = "abc";
c2 = c5;
c2 = c6;
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…