-
What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str = "Interview Mania";
str.insert(str.size() / 3, " * ");
cout << str << endl;
return 0;
}
-
- Interview
- Mania
- Inter * view Mania
- Interview Mania
- None of these
Correct Option: C
In this program, We are placing the string based on the size of the string and it is a string hierarchy.