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...

Explain "passing by value", "passing by pointer" and
"passing by reference" ?

Answer Posted / sampurna pandey

i am not agree with Ranjeet, you mention this

main()
{
int i;
func(i); // call by reference
}

but fun(i) is a call by value not call by reference

your code will give compile error.

Ven eample is right.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I learn dev c++ programming?

1032


Describe the advantage of an external iterator.

1030


How can you link a c++ program to c functions?

1092


Explain operator overloading.

1047


Can you overload the operator+ for short integers?

1030


What are structures and unions?

991


Explain selection sorting?

1061


What is #include cstdlib in c++?

1169


How const int *ourpointer differs from int const *ourpointer?

1114


what is a class? Explain with an example.

1132


What is the hardest coding language to learn?

1031


What is a static member?

1030


Describe public access specifiers?

1099


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1067


Give an example of run-time polymorphism/virtual functions.

994