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
What is 2 d array in c?
Is that possible to store 32768 in an int data type variable?
What are data structures in c and how to use them?
Differentiate between Macro and ordinary definition.
What are identifiers c?
What is the purpose of the statement: strcat (S2, S1)?
What are header files in c?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What are all different types of pointers in c?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Who is the main contributor in designing the c language after dennis ritchie?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
What is a char in c?
How many loops are there in c?