WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / vijay r15
malloc creates the
single block of gn
size by user. Malloc
takes 1ly 1 arg.
Calloc creates
multiple block of gn
size. It will
initialize the
reserved memory block
to zero. Calloc takes
2 arguments
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
what will be maximum number of comparisons when number of elements are given?
Can the “if” function be used in comparing strings?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What are multibyte characters?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What is the difference between text files and binary files?
Explain how can you check to see whether a symbol is defined?
Which header file is used for clrscr?
How would you rename a function in C?
explain how do you use macro?
What is array in c with example?
How can I send mail from within a c program?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
What is malloc return c?
Explain the difference between the local variable and global variable in c?