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...

How can I allocate arrays or structures bigger than 64K?

Answer Posted / s.v.prasad reddy,lifetree

Generally using the malloc() function maximum we can
allocate the 64K memory.

If you want to allocate the memory larger than 64K then you
have to use the farmalloc() memory management function.

And one more important thing is ,Once memory is allocated
by the farmalloc(),then to free that memory we need to use
only farfree() fuction.We can't use the free() fuction to
free that memory.

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer to pointer in c?

1114


What is function pointer c?

1114


What is indirection?

1095


What does sizeof function do?

1197


What is the use of pointers in C?

1084


What is the difference between typedef and #define?

1064


What is meant by int main ()?

1211


What is a global variable in c?

1013


What is malloc calloc and realloc in c?

1332


What is the most efficient way to count the number of bits which are set in an integer?

1061


Here is a neat trick for checking whether two strings are equal

1022


Why c is a mother language?

1040


Explain which function in c can be used to append a string to another string?

1092


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1245


Why is struct padding needed?

1087