#includeusing namespace std; int main() { int myArray[5] = {1, 2, 3, 4, 5}; for(int i=0; i<5; i++) { cout << myArray[i] << " "; } return 0; }
#includeThis will output: `Hello` The C++ Array data structure is included in the Standard Template Library (STL) package.using namespace std; int main() { char myArray[6] = {'H', 'e', 'l', 'l', 'o', '\0'}; cout << myArray << endl; return 0; }