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 mallloc()?how it works?

Answer Posted / ravi chandra

malloc function is used to allocate some space in memory for
the current program that we are running.
malloc() function actually return s the value of the address
of the memory in the memory segment
c=malloc();
it gives the address to the variable c.


h=malloc(sizeof(struct node));
it returns the address of structure for the variable h;
some h=1000; (address value)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should I declare a function?

1133


What are local static variables?

1154


Does c have circular shift operators?

1242


Explain is it valid to address one element beyond the end of an array?

1218


Ow can I insert or delete a line (or record) in the middle of a file?

1005


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1952


What is structure pointer in c?

1057


Why we not create function inside function.

2193


What is unsigned int in c?

1005


Explain what is the heap?

1058


How can you return multiple values from a function?

1118


Differentiate between the = symbol and == symbol?

1301


Explain how can I convert a number to a string?

1152


The file stdio.h, what does it contain?

1165


Explain the difference between strcpy() and memcpy() function?

1008