in Technology by

Distinguish between malloc() & calloc() memory allocation.

1 Answer

0 votes
by

Both allocates memory from heap area/dynamic memory. By default calloc fills the allocated memory with 0’s.

Related questions

0 votes
    Distinguish between malloc() & calloc() memory allocation?...
asked Jan 17, 2021 in Technology by JackTerrance
0 votes
    What is the difference between malloc and calloc?...
asked Jan 23, 2021 in Technology by JackTerrance
0 votes
    Is it better to use malloc () or calloc ()?...
asked Jan 23, 2021 in Technology by JackTerrance
0 votes
    I am observing the following behavior in my test program: I am doing malloc() for 1 MB and then ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    How is the dynamic memory allocation in 1D array in C?...
asked Jan 24, 2021 in Technology by JackTerrance
0 votes
    What is static memory allocation and dynamic memory allocation?...
asked Jan 23, 2021 in Technology by JackTerrance
0 votes
    In Visual Studio, we've all had "baadf00d", have seen seen "CC" and "CD" when inspecting ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    Distinguish between Parameters and Filters in Tableau?...
asked Oct 30, 2020 in Technology by JackTerrance
0 votes
    Distinguish between. State and Government Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Distinguish between. State and Nation Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
0 votes
    Distinguish between: Human male and Human female reproduction system. Select the correct answer from above options...
asked Nov 9, 2021 in Education by JackTerrance
0 votes
0 votes
    Distinguish between: Bryophyta and Pteridophyta. Select the correct answer from above options Science questions ... by,electromagnetic theory engineering physics,Science nptel...
asked Nov 8, 2021 in Education by JackTerrance
...