well why would,
#include <iostream> using namespace std; int afunction () {return 0;}; int anotherfunction () {return 0;}; int main () { cout << &afunction << endl; } give this,
1
- why is every functions address true?
- and how then can a function pointer work if all functions share (so it seems) the same addresss?
(void*)&afunctionWorks! you dont need the manipulator.