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 something that we can do in C and not in C++?

Answer Posted / dangling pointer

try this one
int *x=malloc(10);
it works in c but not in c++ reason is we will have to
explicitly cast in c++ to convert a void* to another type
to work.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the benefit of encapsulation?

1078


What is friend class in c++ with example?

1044


Which sort does c++ use?

1019


How do you differentiate between overloading the prefix and postfix increments?

1095


What is late binding c++?

988


Explain how a pointer to function can be declared in C++?

1065


Define the operators that can be used with a pointer.

1060


What is the use of namespace std in C++?

1071


Describe exception handling concept with an example?

1053


What is the best c++ ide?

1178


What does std mean in c++?

1126


What is a container class? What are the types of container classes in c++?

1268


Will c++ be replaced?

1046


How the virtual functions maintain the call up?

1202


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

1065