A
Q. What will be the output of the following C++ code?
Code:
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
string s = "Hello World";
s.erase(remove(s.begin(), s.end(), ), s.end() ) ;
cout << s << endl;
}
#include <string>
#include <algorithm>
using namespace std;
int main()
{
string s = "Hello World";
s.erase(remove(s.begin(), s.end(), ), s.end() ) ;
cout << s << endl;
}
- Correct Answer - Option(A)
- Views: 3
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.