#include<iostream>
using namespace std;
void callByReference (int &); //Function Prototype
int main()
{
int num; //Variable Declaration
cout<<"Enter number";
cin>>num;
callByReference(num); //Function Definition
cout<<"Number after triple is "<<num<<endl;
return 0;
}
void callByReference (int & cRef) //Funciton Definition
{
cRef=cRef*cRef*cRef;
}
If we are passing address in cRef then address should be multiplied thrice. How the value is multiplied thrice?