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