WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / md ajij
1.malloc() allocate one block of space in memory , argument
of the malloc is the size of the block.
where as calloc() allocate multiple blocks in the memory
,argument of the malloc() is the size of a block and number
of blocks.
2. malloc() takes garbage value at the initial time where
initial value of calloc() is zero.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
In C language what is a 'dangling pointer'?
What do you mean by Recursion Function?
What is volatile, register definition in C
What are the different types of linkage exist in c?
what is ur strangth & weekness
What does a pointer variable always consist of?
What does the c preprocessor do?
When should volatile modifier be used?
Explain low-order bytes.
What is adt in c programming?
What is structure in c definition?
Why main is used in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is pointers in c?