1.

Explain the difference between call by value and call by reference in C language?

Answer»
S.noCall By ValueCall By Reference
1.Passing variable VALUES when calling a function is CALLED Call By ValuesPassing variable location when calling a function is called Call By Reference
2.Values of calling function variable to get COPIED into dummy variablesAddress of actual variables get copied into the dummy variables
3.Changes have no IMPACT on values of actual variablesChanges can MANIPULATE real variables
4.Cannot alter the values of actual variablesPossible to alter the values of variables


Discussion

No Comment Found