Constant and Mutable Values
String literals in Java are immutable, the same is not true in C++.
char * text = "literal "; // note space at endtext[0] = 'm'; // change l to mtext[2]--; // t becomes sstrcpy (text + 6, "ble"); // replace l with ble
Previous slide
Next slide
Back to first slide
View graphic version