Home » C++ Programming » Arrays » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    int main()
    {
    int num[10] = {13, 16, 19, 11, 18, 13, 22, 26};
    cout << num[1] + 2<<" " << num[2] + 1 + 2<<" " << num[5];
    return 0;
    }
    1. 13, 16, 19, 11, 18, 13, 22, 26
    2. 18, 13, 22, 26
    3. 13, 16, 19, 11, 18
    4. 19, 11, 18, 13
    5. 18 22 13
Correct Option: E

18 22 13



Your comments will be displayed only after manual approval.