#include int main() { std::cout << "Attention: Never create a wild pointer. It will cause a segmentation fault.\n"; char text[] = "Hello world.\n"; std::cout << "Printing 'text' string: " << text; std::cout << "Printing individual characters, walking incrementally forward in memory:\n"; /* * For the C string, we can fix the below by writing *i != '\0' instead of true. * Nonetheless, any such constructions should be used with caution. */ for(char* i = text; true; i++) { char c = *i; std::cout << c << " "; } }