WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / monalisa dhal samanta
malloc() is a allocated 1 unit data type.it is a one argument
function .malloc allocate bytes of memory .
calloc() is a allocated sizeof data type .it is a two
argument .
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What are global variables and explain how do you declare them?
Can we replace the struct function in tree syntax with a union?
What is infinite loop?
What does printf does?
What are enumerated types?
Is array a primitive data type in c?
write a program to print largest number of each row of a 2D array
What is the purpose of void in c?
What is the difference between void main and main in c?
How do you search data in a data file using random access method?
What is meant by recursion?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Is c pass by value or reference?
What is a lvalue
What does calloc stand for?