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

why we cant create array of refrences

Answer Posted / o saienni

You cannot have a pointer to a reference.
In other words

int &* isn't allowed.

using:

int nArray[3];

The variable nArray is infact a pointer to an array or an
int pointer and the [] will find the offset within that
array. So an array of references will be a pointer to a
reference and this is why it's not allowed.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is malloc in c++?

1013


Does c++ support exception handling?

1061


What are compilers in c++?

1063


How to defines the function in c++?

1123


Explain static and dynamic memory allocation with an example each.

1099


Explain how to initialize a const data member.

1120


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1067


what is the difference between overloading & overriding? give example.

1175


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1056


Will c++ be replaced?

1040


Explain bubble sorting.

1074


What is a Default constructor?

1586


What is null and void pointer?

1053


Why c++ does not have finally?

1074


How new/delete differs from malloc()/free?

1136