#include #include using namespace std; int main(){ char array[10]; array[0] = 'O'; array[1] = 'p'; array[2] = 'p'; array[3] = 'o'; array[4] = 's'; array[5] = 's'; array[6] = 'u'; array[7] = 'm'; array[8] = 0; cout << array << endl; // Shorter syntax, does the same thing char another_array[] = {'D', 'e', 'e', 'r', 0}; cout << another_array << endl; // Even shorter, but the same thing again char yet_another_array[] = "Elephant"; cout << yet_another_array << endl; char new_elephant[] = "Elephant"; if(strcmp(new_elephant, yet_another_array) == 0) cout << "They're the same!\n"; else cout << new_elephant << " is NOT the same as " << yet_another_array << endl; return 0; }