What is the difference between malloc() and calloc()?
Answer Posted / glibwaresoftsolutions
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
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is an array in c?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
What is time null in c?
What is an operator?
What is indirection? How many levels of pointers can you have?
What is typeof in c?
What is header file definition?
What is c definition?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What are the different data types in C?
Explain what are preprocessor directives?
Why n++ execute faster than n+1 ?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
How can this be legal c?