Home » C++ Programming » Arrays » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    int main()
    {
    char str[20] = "Interview Mania";
    cout << str[10];
    cout <<" "<< str;
    return 0;
    }
    1. Mania
    2. Interview Mania
    3. M Interview Mania
    4. Interview
    5. None of these
Correct Option: C

We are just printing the values of first 10 values.



Your comments will be displayed only after manual approval.