WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / venkateswarlupanidapu
malloc occupies byte of space in memory location and holds
only one argument of data bytes.
calloc occupies and holds 2 bytes of memory in address
location with arguments databytes,number of data bytes.
calloc occupies in structure of blocks and malloc allocates
in struncture of databytes.
Is This Answer Correct ? | 14 Yes | 12 No |
Post New Answer View All Answers
How can I get random integers in a certain range?
Array is an lvalue or not?
What are the differences between Structures and Arrays?
What are pointers really good for, anyway?
Explain the difference between the local variable and global variable in c?
What is the right way to use errno?
What are file streams?
What is a scope resolution operator in c?
What is spark map function?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What is preprocessor with example?
What does it mean when a pointer is used in an if statement?
Explain what standard functions are available to manipulate strings?
Are the outer parentheses in return statements really optional?
How can I implement sets or arrays of bits?