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

Is oops and c++ same?

1012


What are the types of array in c++?

1110


Is there structure in c++?

989


Is it possible to use a new for the reallocation of pointers ?

1008


Differentiate between the message and method in c++?

1036


What can I safely assume about the initial values of variables which are not explicitly initialized?

1025


What are abstract data types in c++?

952


Is swift faster than go?

1064


What is extern c++?

967


What is the latest c++ version?

1067


How come you find out if a linked-list is a cycle or not?

1008


What is endl c++?

1058


How many types of modularization are there in c++?

1043


How can you say that a template is better than a base class?

1039


What is the difference between a pointer and a link in c ++?

1020