what is the difference between malloc() and calloc() function?
Answer / amritha rose
malloc will allocate memory according to the size we
specified
calloc vil allocate memory as blockwise
and initialize by 0
Is This Answer Correct ? | 9 Yes | 1 No |
C,c++, Java is all are structural oriented or procedure oriented language..?
What 'lex' does?
Create a simple code fragment that will swap the values of two variables num1 and num2.
IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.
for (i <= 5 && i >= -1;++i; i > 0) { printf("%d ", i); }
If null and 0 are equivalent as null pointer constants, which should I use?
What is your favorite subject?
1 Answers Ericsson, Invendis, Tech Mahindra,
Why header file is used in c?
What is the difference between malloc() and calloc() function in c language?
how is the examination pattern?
How will you write a code for accessing the length of an array without assigning it to another variable?
What is nested structure in c?