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
Explain the difference between strcpy() and memcpy() function?
When can you use a pointer with a function?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is output redirection?
Is linux written in c?
What does malloc () calloc () realloc () free () do?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What are the types of assignment statements?
What is double pointer in c?
How can you tell whether a program was compiled using c versus c++?
How can I sort a linked list?
What are the types of macro formats?
What is the right type to use for boolean values in c?
What is c language used for?
How can I find out if there are characters available for reading?