WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / jayakrishnan d
1.malloc is only one argument function while malloc is a
two arguments function.
2.malloc allocates bytes of memory while calloc allocates
array of memory.
3.malloc does not initialize the size of allocated memory ie
gabage value while calloc is initialize size of allocated
memory to '0'.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I get a null pointer in my programs?
What is meant by errors and debugging?
Why do we use namespace feature?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
Stimulate calculator using Switch-case-default statement for two numbers
What is a program flowchart and explain how does it help in writing a program?
What does %p mean?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What does c mean before a date?
How can you return multiple values from a function?
Write a program to print ASCII code for a given digit.
Why does notstrcat(string, "!");Work?
What is array within structure?
How can I handle floating-point exceptions gracefully?