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

Answer Posted / sowjanya

in pass by value method actual values of a variable are
copied to the formal arguments . modifications of these
values by performing some operations on it are not effect on
the actual value. i.e these modifications are not returned
to calling function.
in pass by reference method addresses of the actual
variables are copied to the formal arguments. modification
of these variable values effects the actual value by
returning these modifications to calling function.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of operator or there in c?

603


What is unsigned int in c?

560


a value that does not change during program execution a) variabe b) argument c) parameter d) none

696


what is stack , heap ,code segment,and data segment

2223


Explain what are the __date__ and __time__ preprocessor commands?

594






I heard that you have to include stdio.h before calling printf. Why?

588


What are pointers? What are stacks and queues?

579


diff between exptected result and requirement?

1594


How can I do peek and poke in c?

621


Why is sizeof () an operator and not a function?

588


Explain modulus operator. What are the restrictions of a modulus operator?

600


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1717


What are the types of macro formats?

608


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1461


Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.

685