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

Is it possible for the objects to read and write themselves?

1053


What is the c++ programming language used for?

987


Mention the purpose of istream class?

1062


What is the use of string in c++?

977


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

1072


What is a base class?

1048


Why c++ is better than c language?

955


Differentiate between C and C++.

1173


What are pointers used for c++?

1007


Will rust take over c++?

1001


What is the difference between a reference and a pointer?

1046


What is different in C++, compare with unix?

1020


what are the iterator and generic algorithms.

1883


What are references in c++?

1088


Which programming language's unsatisfactory performance led to the discovery of c++?

1261