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 the difference between if else and switchstatement

1558


What is const and volatile in c?

781


Explain the use of fflush() function?

831


What is array within structure?

821


Write a program to print factorial of given number without using recursion?

768


Why is structure important for a child?

822


What is the difference between printf and scanf )?

786


Is null valid for pointers to functions?

844


Why #include is used in c language?

785


What is the use of c language in real life?

763


What are pointers in C? Give an example where to illustrate their significance.

956


What is conio h in c?

804


where are auto variables stored? What are the characteristics of an auto variable?

824


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

840


What is the ANSI C Standard?

991