Summer Special Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: vce65

What happens if characters 'w', 'o', 'r', 'l' and 'd' are entered as input?

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 );

}

A.

It prints: Helloworld

B.

It prints: Hello

C.

It prints: world

D.

Compilation error

C++ Institute CPA-21-02 Summary

  • Vendor: C++ Institute
  • Product: CPA-21-02
  • Update on: Aug 2, 2025
  • Questions: 257
Price: $52.5  $149.99
Buy Now CPA-21-02 PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method