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 / ashish

Upon successful completion with size not equal to 0, malloc() shall return a pointer to the allocated space. If size is 0, either a null pointer or a unique pointer that can be successfully passed to free() shall be returned. Otherwise, it shall return a null pointer [CX] and set errno to indicate the error

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c language & why it is used?

1116


What are actual arguments?

1098


What is sizeof int in c?

1060


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1283


What are the types of bitwise operator?

1113


Explain how can I remove the trailing spaces from a string?

1050


Write a C program in Fibonacci series.

1092


What does the file stdio.h contain?

1069


What is the use of getchar functions?

1185


What does c mean before a date?

1183


What are the benefits of organizational structure?

1029


What are pointers really good for, anyway?

1066


What are the application of void data type in c?

1191


Are pointers integer?

1014


Describe the modifier in c?

1102