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

what is the behaviour of C and C++ compiler for the below
statements.
int *p;
p = malloc(100);

Is the behaviour same ? or different ?

Answer Posted / venu

we should explicitly typecast. Otherwise it is give a
compilation error.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of dot in c++?

1086


What are the two types of comments?

999


How can I improve my c++ skills?

1133


What is searching? Explain linear and binary search.

998


What is c++ array?

1120


explain the reference variable in c++?

1064


What are libraries in c++?

1070


What does scope resolution operator do?

1116


What is the sequence of destruction of local objects?

980


Differentiate between an inspector and a mutator ?

1226


What is singleton pattern in c++?

994


Can I learn c++ as my first language?

1113


What is the difference between strcpy() and strncpy()?

1145


Why is swift so fast?

1128


What is the basic structure of c++ program?

1100