(Find Code Errors) Find any errors in the following and explain how to correct them:
a)
std: :cout << s.data() << std: :endl; // s is "hello"b)
erase( s.rfind( "x" ), 1 ); // s is "xenon"c)
string& foo(){string s( "Hello" );... // other statementsreturn;} // end function foo
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.