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 |
Why shouldn’t I start variable names with underscores?
Explain how can I remove the trailing spaces from a string?
List the different types of c tokens?
I need previous papers of CSC.......plz help out by posting them.......
What will be the output of the following program #include<stdio.h> void main() { int i=20; i-=i+++++i++; printf("%d",i); }
what is the difference between #include<> and #include”…”?
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
What is strcmp in c?
What is the difference between null pointer and wild pointer?
What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
What are local static variables? How can you use them?
What is C language Terminator?