What is the difference between malloc() and calloc()?
Answer Posted / hr@tgksolutions.com
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 the meaning of keyword 'extern' in a function declaration.
Can two or more operators such as and be combined in a single line of program code?
What are the advantages of c preprocessor?
What happens if a header file is included twice?
What is string function c?
how to construct a simulator keeping the logical boolean gates in c
What are the uses of null pointers?
What is an arrays?
What are enums in c?
How can you determine the maximum value that a numeric variable can hold?
What are the advantages of external class?
Differentiate between a for loop and a while loop? What are it uses?
How can I automatically locate a programs configuration files in the same directory as the executable?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What are the types of operators in c?