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
How many types of operator or there in c?
What is unsigned int in c?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
what is stack , heap ,code segment,and data segment
Explain what are the __date__ and __time__ preprocessor commands?
I heard that you have to include stdio.h before calling printf. Why?
What are pointers? What are stacks and queues?
diff between exptected result and requirement?
How can I do peek and poke in c?
Why is sizeof () an operator and not a function?
Explain modulus operator. What are the restrictions of a modulus operator?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What are the types of macro formats?
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
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.