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

Is there any problem with the following:

char *a=NULL; char& p = *a;?

Answer Posted / neelam saini

The result is undefined. You should never do this. A reference must always refer to some object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by overhead in c++?

1029


Can I create my own functions in c++?

1038


If a header file is included twice by mistake in the program, will it give any error?

993


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1824


What is while loops?

995


what are the characteristics of Class Members in C++?

995


What is oops in c++?

996


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

1070


Can constructor be static in c++?

1050


Is python written in c or c++?

1090


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

937


Explain what happens when a pointer is deleted twice?

1193


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

1140


Explain the use of virtual destructor?

1025


What are separators in c++?

1035