#include #include using namespace std; void Call1(const string * a); void Call2(string * a); int main() { string x = "Hello"; Call1(&x); Call2(&x); cout << " In main, x = " << x << endl; return 0; } void Call1(const string * a){ cout << "In Call1, I was passed " << *a << endl; Call2( const_cast (a)); //Call2( a); return; } void Call2(string * a){ cout << "In Call2, I was passed " << *a << endl; *a = "world" + *a; return; }