Question PRG-CPP-0027
EasyWhat is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "Hi";
s += "!";
cout << s;
return 0;
}
- A.
Hi
- B.
Hi!
- C.
Hi !
- D.
!Hi
Sign up free to see the answer and a step-by-step explanation.