Original Post
What's the main difference between the mere function and referencing function below? int ar[5]; int funcname(int n) { //some codes here; return ar[n]; } int& funcname(int n) { //some codes again; return ar[n]; } thx for replies in advance:)