What is the difference between malloc() and calloc()?
Answer Posted / nashiinformaticssolutions
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain union.
Explain what does it mean when a pointer is used in an if statement?
Can the sizeof operator be used to tell the size of an array passed to a function?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
What are the different types of pointers used in c language?
What is structure padding in c?
Why is python slower than c?
What is the difference between array_name and &array_name?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
How many identifiers are there in c?
How can I read data from data files with particular formats?
What is the equivalent code of the following statement in WHILE LOOP format?
What is a const pointer?