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 are manipulators in c++ with example?

1078


What is iterator in c++?

1123


If you don’t declare a return value, what type of return value is assumed?

964


write a function signature with various number of parameters.

1049


How does atoi function work?

1159


What is c++ code?

1131


What is istream c++?

1204


what are Operators and explain with an example?

1168


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

1084


What do you mean by overhead in c++?

1100


Can we specify variable field width in a scanf() format string? If possible how?

1272


Is linux written in c or c++?

1055


What is long in c++?

1254


What is an operator in c++?

1069


What are the advantages of c++ over c?

1079