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
write a program to print data of 5 five students with structures?
What are the different properties of variable number of arguments?
How to Throw some light on the splay trees?
What do you mean by invalid pointer arithmetic?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
Why does everyone say not to use gets?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What is a char in c?
Explain the advantages of using macro in c language?
How can I trap or ignore keyboard interrupts like control-c?
Why can't I perform arithmetic on a void* pointer?
Explain what is the difference between functions getch() and getche()?
given post order,in order construct the corresponding binary tree
What’s the special use of UNIONS?
What is const keyword in c?