Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are global variables and explain how do you declare them?

1096


Can we replace the struct function in tree syntax with a union?

1307


What is infinite loop?

1083


What does printf does?

1243


What are enumerated types?

1186


Is array a primitive data type in c?

1055


write a program to print largest number of each row of a 2D array

2325


What is the purpose of void in c?

1067


What is the difference between void main and main in c?

1156


How do you search data in a data file using random access method?

1304


What is meant by recursion?

1050


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(); }

2307


Is c pass by value or reference?

1034


What is a lvalue

1081


What does calloc stand for?

1156