What is the difference between malloc() and calloc()?
Answer Posted / hr@tgksolutions.com
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different types of pointers used in c language?
What is meant by inheritance?
What are structure types in C?
Explain how does flowchart help in writing a program?
main() { printf("hello"); fork(); }
Describe dynamic data structure in c programming language?
How can I use a preprocessorif expression to ?
what are enumerations in C
What are the different types of C instructions?
Explain the difference between call by value and call by reference in c language?
What is volatile variable in c?
How can I recover the file name given an open stream or file descriptor?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Is it acceptable to declare/define a variable in a c header?
What is difference between stdio h and conio h?