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.

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / vijaya

in pass by value only the actual value of a variable is
copied to a formal parameter & it doesn't effects the
actual value when any operations r done on it
where
in pass by refference we r sending address of variables it
gives exact results but any oprations done on it may effect
actual values

Is This Answer Correct ?    9 Yes 0 No

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

Answer / srikanth

In pass by value we can pass value through the arguments

In pass reference with the help of operation

Is This Answer Correct ?    3 Yes 1 No

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

Answer / 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

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

Answer / achal ubbott

When we use 'pass by value' method, acopy of the object is
sent to the called function. So the copy constructor of the
object gets called. But the called function cannot modify
the content of the original object.
But references of an object are like alias. When 'pass by
reference ' is used it is actually using address at the
underlying. This way the called function may modify the
contents of the original object since operations are being
performed over the same object using its address, not on
the copy.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / kiran

In Pass-by-value, changes made in the formal parameters will not reflect in actual parameters and vice-versa. Where as In Pass-by-reference, changes made in the formal parameters will reflect in actual parameters and vice-versa.

Is This Answer Correct ?    0 Yes 0 No

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

Answer / vasanth

pass by value :passing the varibles directly into function
augments

pass by reference:
passing the address of the pointer varible

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More C Interview Questions

How can I open a file so that other programs can update it at the same time?

0 Answers  


Explain what standard functions are available to manipulate strings?

0 Answers  


Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ?

8 Answers   Mascot, TCS,


which operator having lowest precedence?? a.)+ b.)++ c.)= d.)%

4 Answers  


how to find sum of digits in C?

21 Answers   CTS, Infosys,


write a program for fibonaci series by using while loop in c?

2 Answers  


Can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  


What is getch() function?

0 Answers  


hello friends what do u mean by BUS ERROR i got this error while i am doing my program in DATA STRUCTURES

2 Answers   Wipro,


what is recursion in C

0 Answers   Cap Gemini,


Where we use clrscr in c?

0 Answers  


Explain how many levels deep can include files be nested?

0 Answers  


Categories