What is the difference between malloc() and calloc()?
Answer Posted / 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 |
Post New Answer View All Answers
How can I run c program?
why do some people write if(0 == x) instead of if(x == 0)?
Explain how do you sort filenames in a directory?
Why c is called a mid level programming language?
How does free() know explain how much memory to release?
What is binary tree in c?
Is it possible to have a function as a parameter in another function?
Differentiate abs() function from fabs() function.
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What oops means?
Explain what is a program flowchart and explain how does it help in writing a program?
Explain continue keyword in c
What is sizeof array?
how many errors in c explain deply
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12