C++ Institute CPA-21-02 Question Answer
What happens if characters 'w', 'o', 'r', 'l' and 'd' are entered as input?
#include
#include
using namespace std;
int main()
{
string s1 = "Hello";
string s2;
getline( cin, s2 );
cout << s1 + s2;
return( 0 );
}
C++ Institute CPA-21-02 Summary
- Vendor: C++ Institute
- Product: CPA-21-02
- Update on: Aug 2, 2025
- Questions: 257