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

If a header file is included twice by mistake in the program, will it give any error?

996


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

915


What is using namespace std in c++?

1089


What is private inheritance?

1047


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

1132


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

999


Describe linkages and types of linkages?

944


why and when we can declar member fuction as a private in the class?

2024


What will happen if a pointer is deleted twice?

1134


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1401


How to declaring variables in c++?

1108


What is a container class?

1061


What is difference between malloc()/free() and new/delete?

1118


What is a down cast?

1035


How do I run a program in notepad ++?

1048