What is the difference between malloc() and calloc()?
Answer Posted / hr@tgksolutions.com
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 |
Post New Answer View All Answers
How can I ensure that integer arithmetic doesnt overflow?
What's the best way of making my program efficient?
how should functions be apportioned among source files?
What is #define used for in c?
Why is this loop always executing once?
Can I initialize unions?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Why c is procedure oriented?
What are the types of functions in c?
Where define directive used?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Why ca not I do something like this?
write a progrmm in c language take user interface generate table using for loop?
What do you mean by a sequential access file?