Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
using namespace std; void modifyStr(string &str) { str += " World!"; } int main() { string greeting = "Hello"; modifyStr(greeting); cout << greeting; return 0; }
Hello World!