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

Describe the modifier in c?

1148


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

2218


Is c still relevant?

1139


What is function and its example?

1273


What is typedf?

1166


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2470


What is strcmp in c?

1219


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1295


What are void pointers in c?

1062


How many levels of pointers have?

1102


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1137


What is register variable in c language?

1065


Which function in C can be used to append a string to another string?

1275


Combinations of fibanocci prime series

1666


Differentiate between the expression “++a” and “a++”?

1310