WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / venkateswarlupanidapu
malloc occupies byte of space in memory location and holds
only one argument of data bytes.
calloc occupies and holds 2 bytes of memory in address
location with arguments databytes,number of data bytes.
calloc occupies in structure of blocks and malloc allocates
in struncture of databytes.
| Is This Answer Correct ? | 14 Yes | 12 No |
Post New Answer View All Answers
What is the difference between array and structure in c?
Explain what is the benefit of using an enum rather than a #define constant?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Explain the use of function toupper() with and example code?
What is the explanation for modular programming?
what is bit rate & baud rate? plz give wave forms
How is a macro different from a function?
What are compound statements?
Explain output of printf("Hello World"-'A'+'B'); ?
difference between Low, Middle, High Level languages in c ?
Can we initialize extern variable in c?
what is the function of pragma directive in c?
What is the process of writing the null pointer?
Do you know pointer in c?
what do u mean by Direct access files? then can u explain about Direct Access Files?