Why second works, but first givws segmentation fault?
char s2[] = {49,49,0};
char **pch = (char **)&s2;
cout << *pch << endl;
int i[] = {10101,2};
int **pi = (int **)&i;
cout << *pi << endl;
Printable View
Why second works, but first givws segmentation fault?
char s2[] = {49,49,0};
char **pch = (char **)&s2;
cout << *pch << endl;
int i[] = {10101,2};
int **pi = (int **)&i;
cout << *pi << endl;