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's the return value of malloc()

Answer Posted / sourisengupta

malloc returns a pointer to the allocated space if required
memory is available otherwise it will return a null pointer.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between strcpy() and memcpy() function?

951


When can you use a pointer with a function?

995


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

1064


What is output redirection?

1171


Is linux written in c?

992


What does malloc () calloc () realloc () free () do?

1006


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1042


What are the types of assignment statements?

1010


What is double pointer in c?

987


How can you tell whether a program was compiled using c versus c++?

1047


How can I sort a linked list?

977


What are the types of macro formats?

1064


What is the right type to use for boolean values in c?

994


What is c language used for?

928


How can I find out if there are characters available for reading?

1058