void Call_By_Reference(int &n)
{
n++;
return;
}
void Call_By_Value(int n)
{
n++;
return;
}
void Call_By_Pointer(int *n)
{
(*n)++;
return;
}
int main()
{
int a=0;
Call_By_Value(a);
printf("%d\n",a);
Call_By_Reference(a);
printf("%d\n",a);
Call_By_Pointer(&a);
printf("%d\n",a);
=================================
0
1
2