WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / abhishek pathak mnnit
1- malloc() takes one argument while calloc takes 2 argument.
2- default value of malloc is garvage while calloc is 0;
3- malloc allocate memory in contiguous form while calloc
allocate memory in contiguous form if not avilable the takes
diffrent place.
| Is This Answer Correct ? | 88 Yes | 18 No |
Post New Answer View All Answers
Explain how do you determine a file’s attributes?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Tell us two differences between new () and malloc ()?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Explain what is the advantage of a random access file?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
What type of function is main ()?
What does void main return?
Why doesnt long int work?
Explain About fork()?
Why do we use pointer to pointer in c?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
If fflush wont work, what can I use to flush input?
How can you check to see whether a symbol is defined?