Why is it that any time i print a function in cpp, it prints 1. i.e
#include <iostream>
using namespace std;
void f1(){
cout<<"called function f";
}
int f2(){
cout<<"called f2";
return 1;
}
int main(){
cout << f2 <<endl; // prints 1
cout << f1 <<endl; // still prints 1
}
Im just wondering why it prints 1.
Thanks for your help