How to modify the string that I pass to the function that I get it back as modified.
I wanna get back just "world!" but without returning anything.
Code:#include <iostream> using namespace std; void f2(char * buf2) { buf2 += 6; cout<< buf2 <<endl; } int main() { char buf[88] = "Hello world!"; f2(buf); cout << buf << endl; return 0; }