what is the difference between call by value and call by
reference?

Answer Posted / raju

Call by Value: C support the call by value, where the caller
pass the value to the function and the updates on the
function will not effect on the caller.

Call by reverence: Here will pass the reference of the
variable to function, the update on the function variables
will effect on the caller.

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static memory allocation?

609


What is hash table in c?

575


I have a varargs function which accepts a float parameter?

579


List a few unconditional control statement in c.

561


What is d'n in c?

638






Does c have enums?

603


How do I determine whether a character is numeric, alphabetic, and so on?

623


How to Throw some light on the splay trees?

621


Explain #pragma statements.

604


Explain what are compound statements?

606


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1588


What is the size of empty structure in c?

595


How to write a code for reverse of string without using string functions?

1580


Explain main function in c?

630


What is a ternary operator in c?

655