WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / shruti
malloc will only allocate space in the memory..
calloc will allocate space in the memory as well as
initialise it to a particular value.
| Is This Answer Correct ? | 134 Yes | 39 No |
Post New Answer View All Answers
What is omp_num_threads?
Explain enumerated types in c language?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Explain how can I read and write comma-delimited text?
why do some people write if(0 == x) instead of if(x == 0)?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is the difference between array and pointer in c?
explain what is an endless loop?
How will you delete a node in DLL?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What are the properties of union in c?
what is the syallabus of computer science students in group- 1?
How to Throw some light on the splay trees?
What is null in c?
How can I trap or ignore keyboard interrupts like control-c?