what's the return value of malloc()

Answer Posted / himanshu

garbage
but calloc returns zero

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ based on c?

645


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1639


Explain output of printf("Hello World"-'A'+'B'); ?

969


What is malloc calloc and realloc in c?

660


What is the difference between typedef struct and struct?

592






Explain what’s a signal? Explain what do I use signals for?

606


What are the types of operators in c?

608


What is typedef struct in c?

579


Write a program to print fibonacci series using recursion?

581


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1467


What is the difference between near, far and huge pointers?

628


What is the method to save data in stack data structure type?

600


How can I read data from data files with particular formats?

599


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

652


What is the process to create increment and decrement stamen in c?

583