answersLogoWhite

0

What is memory leakage in terms of arrays?

Updated: 8/17/2019
User Avatar

THEAUTOCRACT

Lvl 1
14y ago

Best Answer

leakage in arrays occur when you declare an array with big size and using only very few bytes.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is memory leakage in terms of arrays?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is memory leakage in C?

When you are using pointers and you don't free memory after you stoped using it, you loose certain amount of memory, which you cannot use and system cannot use either because it was reserved. When you work with huge amounts of memory like arrays you can run out of memory which will cause a fatal error.


What is memory allocation?

Memory allocation is the act of reserving a chunk of memory for some set of data. In programming terms, this is normally done by declaring a variable. Large arrays of data will require large blocks of contiguous memory, which the programmer must request from the operating system.


What shoul you do when there is a leakage of space in terms of array?

If you have a memory leak, you should find it and fix it. It is a bug. It does not matter if it is an array or not. It is still a bug, and it needs to be fixed.


What is the purpose of using arrays in C language?

The purpose of using arrays in C is to store multiple values in one variable. Then you can make programs that use arrays like lists, printing values from multiple arrays into one line. It take memory in continues block then we can know memory location easily. We can retrieve data quickly.


What are the benefits of an array?

The major benefit of an array is that it provides constant time random access to any element in the array. For static arrays (fixed size), memory consumption is also optimal. Dynamic arrays can be just as optimal in terms of memory consumption, however, performance will suffer whenever the array needs to be re-allocated and/or elements need to be moved within the array. Allocating several elements at a time can alleviate much of this problem, however memory consumption becomes less than optimal. Where random access is not an issue, list structures are more beneficial in terms of both performance and memory consumption.


What are the two common problems with pointers?

Memory leakage, problems with tracking and managing.


Dynamically allocated array waste storage and time?

It's actually not true. In order to make a good program which can work with big arrays you have to use dynamic arrays because you can cleam memory used by dymanic arrays any time. For static arrays is not true, memery which was reserved for static arrays will be available for other applications only when you finish working with your application (which is working with static arrays).


What is Arrays of Pointers?

An array of pointers is a contiguous block of memory that contains pointers to other memory locations. They essentially allow non-contiguous memory locations to be treated as if they were an actual array.


How memory is allocated in case of arrays?

1 byte for 1 index item in 16-bit operating system


Why memory is divided into initialized and uninitialized areas?

The program's data segment. This area of memory is allocated by the linker and is used to store the program's global variables, static variables, static arrays and constants. Constants are always initialised, as are static variables, but global variables and static arrays need not be initialised.


In terms of digital technology state what memory is?

memory :)


What are the three terms for computer memory?

RAM, Memory, ?