B
Q. What will be the output of the following C++ 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; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Return type of uncaught_exception () is ________________.
Q. Which of the following functions must use reference?
Q. Which of the following is the correct way to define a function with a deleted definition in C++?
Q. Functions called from within a try block may also throw exception.
Q. Which of the following is the correct way to define a function with a lambda expression in C++?
Q. Which of the following below is /are a valid iterator type?
Q. Minimum number of temporary variable needed to swap the contents of 2 variables is:
Q. Which one of the following is not a valid reserved keyword in C++
Q. Which of the following is used to terminate the function declaration in C++?
Discusssion
Login to discuss.