#include #include #include using namespace std; int main(){ printf("Good morning\n"); cout << "Another good morning\n"; string animal = "giraffe"; animal += " cow"; string another_animal = " moose"; string combo = animal + another_animal; cout << combo << endl; printf("This is being printed and formated! %s\n", combo.c_str()); const char *c_animal = "giraffe"; char c_animal2[128] = "giraffe"; strcat(c_animal2, " cow"); const char *c_another_animal = " moose"; char c_combo[128]; strcpy(c_combo, c_animal2); strcat(c_combo, c_another_animal); cout << c_combo << endl; printf("c_animal is stored at address %lx\n", c_animal); printf("c_animal2 is stored at address %lx\n", c_animal2); c_animal2[0] = 'G'; return 0; }