Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

write a program to print data of 5 five students with structures?

2004


What are the different properties of variable number of arguments?

1100


How to Throw some light on the splay trees?

1002


What do you mean by invalid pointer arithmetic?

1001


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

1915


Why does everyone say not to use gets?

1026


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1476


What is a char in c?

930


Explain the advantages of using macro in c language?

950


How can I trap or ignore keyboard interrupts like control-c?

1019


Why can't I perform arithmetic on a void* pointer?

1043


Explain what is the difference between functions getch() and getche()?

987


given post order,in order construct the corresponding binary tree

2723


What’s the special use of UNIONS?

1105


What is const keyword in c?

1121