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

Can you write a function similar to printf()?

1125


Differentiate between an inspector and a mutator ?

1197


What is the basic difference between C and C++?

1156


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

980


What is the meaning of c++?

1013


What is singleton pattern in c++?

975


If dog is a friend of boy, is boy a friend of dog?

971


What is meant by entry controlled loop?

1098


Distinguish between a # include and #define.

1133


What is java and c++?

1159


How a macro differs from a template?

1151


What is a singleton class c++?

1009


Who was the creator of c++?

1034


What are guid? Why does com need guids?

1042


What is the best way to take screenshots of a window with c++ in windows?

1040