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

Why is polymorphism useful?

1108


What are punctuators in c++?

1211


Will c++ be replaced?

1101


What is the header file for setw?

1192


What is while loops?

1099


Explain what you mean by a pointer.

1156


Explain the differences between private, public and protected and give examples.

1069


What is class in c++ with example?

1370


Explain how we implement exception handling in c++?

1106


What is the limitation of cin while taking input for character array?

2159


Who invented turbo c++?

1114


Are php strings immutable?

1108


Does a derived class inherit or doesn't inherit?

1123


What is a syntax in c++?

1208


What is an undefined behavior and sequence points

1055