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
What is use of bit field?
List out few of the applications that make use of Multilinked Structures?
What is the difference between array_name and &array_name?
Which programming language is best for getting job 2020?
What is c language used for?
what are the different storage classes in c?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is wrong with this program statement?
How do you determine whether to use a stream function or a low-level function?
What is a structure in c language. how to initialise a structure in c?
Define VARIABLE?
What does it mean when the linker says that _end is undefined?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Is c still used?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }