B
bintom
Why is it the this code runs:
char str1[] = "Prof. Vally";
cout << ++(*str1) << (*str1)++;
But this code crashes:
char *str2 = "Prof. Vally";
cout << ++(*str2) << (*str2)++;
I use the Dev C++ compiler
char str1[] = "Prof. Vally";
cout << ++(*str1) << (*str1)++;
But this code crashes:
char *str2 = "Prof. Vally";
cout << ++(*str2) << (*str2)++;
I use the Dev C++ compiler