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

How do you list a file’s date and time?

623


Combinations of fibanocci prime series

1105


What is selection sort in c?

601


What is the difference between call by value and call by reference in c?

611


Can you explain the four storage classes in C?

637






How do I read the arrow keys? What about function keys?

608


What is the difference between null pointer and wild pointer?

630


Explain how can you tell whether two strings are the same?

580


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

612


What is the use of printf() and scanf() functions?

624


how to create duplicate link list using C???

2068


What are called c variables?

569


Which one would you prefer - a macro or a function?

598


What is scope and lifetime of a variable in c?

570


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

568