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
Write a program to reverse a linked list in c.
What is oops c?
What is the scope of static variable in c?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is c preprocessor mean?
How can I do serial ("comm") port I/O?
Describe wild pointers in c?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is masking?
what is a function method?give example?
How do I get a null pointer in my programs?
What are the types of i/o functions?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What happens if a header file is included twice?