#include #include using namespace std; int main() { //declaring an array string str1[4] = {"A", "B", "C","D"}; //Qunicy this compiler won't allow //char array without key word const //char ch1B[] = {'A','B','C','D'}; // This will complie const char ch1[] = {'A','B','C','D'}; char ch2[4] = {'E','F','G','H'}; int n1[] = { 1, 2,3,4}; int n2[4] = { 1, 2,3,4}; // iterating array in a for loop cout<< "string array \n"; for(int i=0; i< 4; i++) { cout <<" "<< str1[i]; } cout<< "\n char array \n"; for(int i=0; i< 4; i++) { //cout <<"\t\b\b"<< ch1B[i]; cout <<" "<< ch1[i]; cout <<" "<< ch2[i]; } // cout<< "\n integer array \n"; for(int i=0; i< 4; i++) { cout <<" "<< n1[i]; cout <<" "<< n2[i]; } return 0; }