If i wanted to find the address of a variable i would do this:
int x = &y;
How would I do the same thing for a function that i wrote? In this program:
cout << &hello always evaluates to 1. How would i get the memory address?Code:void hello(); void hello() { cout << "hello" << endl; } int main(){ cout << &hello; cin.get(); return 0; }
THANKS!