What is the difference between malloc() and calloc()?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
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 |
Answer / 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 |
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 |
What are the advantage of c language?
a 'c' program to tell that the set of three coordinates lie on a same line
What are different types of operators?
How can I read data from data files with particular formats?
Why does notstrcat(string, "!");Work?
in malloc and calloc which one is fast and why?
What does a pointer variable always consist of?
What is storage class?
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
Why is it usually a bad idea to use gets()? Suggest a workaround.
What is the use of getchar functions?
Write a c program to find, no of occurance of a given word in a file. The word is case sensitive.