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

What is far pointer in c?

821


Explain how do you use a pointer to a function?

646


Is multithreading possible in c?

575


What are the storage classes in C?

633


What is the benefit of using #define to declare a constant?

614






What is the difference between local variable and global variable in c?

699


What's the best way of making my program efficient?

633


What is a const pointer?

644


swap 2 numbers without using third variable?

672


Explain what is dynamic data structure?

658


Do pointers need to be initialized?

575


How can I do peek and poke in c?

631


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

658


What are the loops in c?

603


How can I make sure that my program is the only one accessing a file?

691