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;
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 2 of 2
Threaded View
|
Click Here to Expand Forum to Full Width |