What’s the error?
void main()
{ char str1[] = "Defined as an array";
char* str2 = "Defined as a pointer";
cout << endl << str1;
cout << endl << str2;
str1++; str2++;
cout << endl << str2;
}
What’s the output?
Previous slide
Next slide
Back to first slide
View graphic version