WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / kaushik
malloc takes only one argument but calloc takes two orguments
malloc takes garbage value initial but calloc takes zero initial value,
calloc()and malloc() also returns NULL if there is not sufficient memory available in the heap
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
#include
Explain 'bit masking'?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
code for replace tabs with equivalent number of blanks
How do you determine whether to use a stream function or a low-level function?
Which built-in library function can be used to match a patter from the string?
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 pointer. What are function pointers in C?
What is #include called?
Why does this code crash?
What is assignment operator?
What are the disadvantages of a shell structure?
How can you invoke another program from within a C program?
Why void is used in c?