WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / kaushik
malloc takes only one argument but calloc takes two orguments
malloc takes garbage value initial but calloc takes zero initial value,
calloc()and malloc() also returns NULL if there is not sufficient memory available in the heap
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Explain bitwise shift operators?
How does normalization of huge pointer works?
What is the difference between local variable and global variable in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Explain how can a program be made to print the name of a source file where an error occurs?
Tell us something about keyword 'auto'.
What is a spanning Tree?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is meant by recursion?
What is merge sort in c?
What is a union?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
What will be your course of action for a push operation?