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 / shashidhar murthy

malloc returns a pointer to the allocated space if required
memory is found, else, a null pointer is returned and
'errno' is set to indicate the error.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pointer and how it is initialized?

1157


Explain the difference between the local variable and global variable in c?

1073


What are different types of variables in c?

1069


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1937


Describe the order of precedence with regards to operators in C.

1047


write a program to find out prime number using sieve case?

2099


What is difference between main and void main?

1210


Is it possible to pass an entire structure to functions?

998


What is a 'null pointer assignment' error?

1214


What is malloc() function?

1158


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1120


Explain what is the difference between a free-standing and a hosted environment?

1184


What is a volatile keyword in c?

1165


How do you define structure?

1041


difference between native and cross compilers

2125