#include #include using namespace std; void myFunction(char *c, string *n) { cout << "From Function - c = " << *c << endl; *n = "Hecker"; } int myAddressOfFunction(int *i) { cout << "AddressOf i = " << &i << endl; cout << "i = " << *i << endl; return 0; } int main() { char *a; char z = 'z'; a = &z; string *name = new string; *name = "Barbara"; myFunction(a, name); cout << "Name is " << *name << endl; string values = "abcdefg"; for (int r=0; r<7; r++) { cout << values[r] << endl; } int t = 20; int *f = new int; f = &t; // creates a memory leak myAddressOfFunction(f); return 0; }