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

if p is a string contained in a string?

1851


Is exit(status) truly equivalent to returning the same status from main?

1077


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1971


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1325


Why does this code crash?

1100


How many keywords (reserve words) are in c?

1143


What are the advantages of using linked list for tree construction?

1104


Can we use any name in place of argv and argc as command line arguments?

1076


Explain About fork()?

1119


What does %d do in c?

965


Write a program to identify if a given binary tree is balanced or not.

1164


what is bit rate & baud rate? plz give wave forms

1980


How many parameters should a function have?

1195


what are the advantages of a macro over a function?

1146


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

1159