V
Virtual_X
char *x[10] = {"abc","eqx",.....};
this is valid
and the same in int in not valid
int *x[10] = {1,2,3,4,....};
--------------------------------------------------------------
and also
char *seg= "CPP";
seg[1]= 'x'; // or *seg= 'x';
cout << seg << endl;
why the program crash when running the above code and not to print
CXP
this is valid
and the same in int in not valid
int *x[10] = {1,2,3,4,....};
--------------------------------------------------------------
and also
char *seg= "CPP";
seg[1]= 'x'; // or *seg= 'x';
cout << seg << endl;
why the program crash when running the above code and not to print
CXP