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 hash table in c?

768


What is putchar() function?

836


What are the types of data structures in c?

814


How can you draw circles in C?

836


what is a constant pointer in C

878


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4969


why return type of main is not necessary in linux

1877


What is getch() function?

827


How to throw some light on the b tree?

809


What is graph in c?

808


What is sizeof in c?

756


What is a structure in c language. how to initialise a structure in c?

824


How arrays can be passed to a user defined function

778


What does void main () mean?

951


What is the purpose of type declarations?

873