Paste Search Dynamic
Recent pastes
abc in
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f2(string *s1)
  5. {
  6.         *s1 = "abc";
  7. }
  8. void f1(string *s1)
  9. {
  10.         f2(s1);
  11.         cout<<*s1<<" in f1n";
  12. }
  13. int main() {
  14.         string s1;
  15.         f1(&s1);
  16.         cout<<s1<<" in mainn";
  17. }
Parsed in 0.001 seconds