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

What is c method?

981


Explain bitwise shift operators?

1227


What are the 5 data types?

1109


When is a null pointer used?

1094


What is function prototype?

1114


Where in memory are my variables stored?

1167


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

1036


What do you mean by invalid pointer arithmetic?

1049


Explain how can I manipulate strings of multibyte characters?

1187


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

1267


How can I access an I o board directly?

1077


What is indirection in c?

1056


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1128


Explain how can you avoid including a header more than once?

1074


How to delete a node from linked list w/o using collectons?

2767