What do you mean by call by value and call by reference?

Answer Posted / hrpynux@gmail.com

While calling a function, when you pass values by copying variables, it is known as “Call By Values.” While calling a function, in programming language instead of copying the values of variables, the address of the variables is used it is known as “Call By References

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to tokenize a string in c++?

602


What is the benefit of c++?

595


What does obj stand for?

626


Is java easier than c++?

588


What is long in c++?

735






What is atoi in c++?

564


What is this pointer in c++?

732


Define stacks. Provide an example where they are useful.

575


What are the different types of comments allowed in c++?

575


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

547


what is a class? Explain with an example.

617


What is a local reference?

669


What is the error in the code below and how should it be corrected?

302


What kind of problems can be solved by a namespace?

591


What is searching?

653