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

My teacher ask to make a program that can: Insert record in front Insert record at the end Insert in between Search node record Delete record in front Delete record at the end Delete record in between Using Data structure Linked List type. But I'm really confused about the codes and I can't go through. Please help Thanks in advance. Also here is my unfinished code if someone can make changes it will be more good.

1 Answers  


What is static and auto variables in c?

0 Answers  


write a function which accept two numbers from main() and interchange them using pointers?

3 Answers  


What is 02d in c?

0 Answers  


program for comparing 2 strings without strcmp()

4 Answers  


What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }

5 Answers   Amazon, Qualcomm,


What is line in c preprocessor?

0 Answers  


What are the storage classes in C?

0 Answers  


Output for following program using for loop only * * * * * * * * * * * * * * *

3 Answers  


Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June

0 Answers  


When should the const modifier be used?

0 Answers  


Write a program to enter the name and age. If age>28 then find salary categories. if age<28 then find that you are gaduate or not.

1 Answers  


Categories