What's the difference between calloc() and malloc()?
Answer Posted / k.thejonath
Malloc allocates a block of memory whereas using calloc we
can allocate array of memory blocks and all locations are
initialized to zeros
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
How can you invoke another program from within a C program?
What is a loop?
Explain how are 16- and 32-bit numbers stored?
What is a static function in c?
What is a program flowchart?
What is n in c?
What are linked lists in c?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
how can use subset in c program and give more example
Can we declare a function inside a function in c?
What are the different file extensions involved when programming in C?
What is the advantage of a random access file?
What are the 4 data types?
What is hungarian notation? Is it worthwhile?
program for reversing a selected line word by word when multiple lines are given without using strrev