what's the return value of malloc()
malloc returns a pointer to the allocated space if required memory is available otherwise it will return a null pointer.