#include #include using namespace std; int main() { char str[]="Hello"; // declare and initialize string // constant string enclosed by "... " cout << str << endl; // output the whole string for (int i=0; i<5; ++i){ cout << str[i] << endl; // output the i-th character } }