#include using namespace std; int* a_function(){ int *x = new int; *x = 500; cout << *x << endl; return x; } int main(){ string s = "Hello World\n"; cout << s; char other_s[] = "hello world\n"; cout << other_s; // Capitalize it for(char *place = other_s; *place ; place++) if(*place >= 'a' && *place <= 'z') *place -= 'a' - 'A'; cout << other_s; int *x_address = (int*)a_function(); cout << *x_address << endl; cout << *x_address << endl; delete x_address; /* A bunch more stuff to do */ return 0; }