What's the difference between calloc() and malloc()?
Answer Posted / bhaswati
malloc allocates m bytes means it takes one arguments.but calloc allocate m times n bytes and initialized the memory location to zero.it takes two arguments.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Differentiate between new and malloc(), delete and free() ?
Is int a keyword in c?
What are the application of c?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
How can you access memory located at a certain address?
Can we replace the struct function in tree syntax with a union?
Is c call by value?
What is fflush() function?
What is assignment operator?
Define Spanning-Tree Protocol (STP)
What is clrscr ()?
Can you write a programmer for FACTORIAL using recursion?
What is gets() function?
What is the c value paradox and how is it explained?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping