Home » C++ Programming » Questions and Answers » Question
  1. What is the output of this program?
    #include <iostream>
    using namespace std;
    int main(void)
    {
    const char *First = "Interview Mania";
    cout << First << endl;
    const char *Second = First;
    cout << Second << endl;
    return 0;
    }
    1. Interview Mania
    2. Interview Mania
      Interview Mania
    3. Interview Mania
      Interview Mania
      Interview Mania
    4. Interview Mania
      Interview Mania
      Interview Mania
      Interview Mania
    5. None of these
Correct Option: B

We are copying the values from one variable to other, So it will print two time Interview mania.



Your comments will be displayed only after manual approval.