what is the differance between pass by reference and pass
by value.

Answer Posted / shalini

In the pass by reference we are using the pointer that is
here, we are passing only address where value is stored. but
in the case pass by value we are using ordinary variable
that is pass the value itself. here the value cannot be
changed in calling function and returning back to called
function but this is possible in call by reference

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I determine whether a machines byte order is big-endian or little-endian?

624


Tell me is null always defined as 0(zero)?

677


Why c is procedure oriented?

576


Explain what are global variables and explain how do you declare them?

645


Write a program to implement queue.

668






How the c program is executed?

635


What is the difference between struct and union in C?

578


What is size of union in c?

584


What are reserved words with a programming language?

606


Is there any demerits of using pointer?

634


What are the header files used in c language?

591


What does 3 mean in texting?

619


What is dynamic dispatch in c++?

560


What is meant by initialization and how we initialize a variable?

590


What is function and its example?

630