answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What shoul you do when there is a leakage of space in terms of array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Difference between blank space and white space?

In computer programming, these two terms are interchangeable.


What is vacuum in engineering terms?

It is an empty space- A space where there is no matter. A perfect vacuum has no gas.


What is recursive call in terms of algorithm?

A recursive call in an algorithm is when a function (that implements this algorithm) calls itself. For example, Quicksort is a popular algorithm that is recursive. The recursive call is seen in the last line of the pseudocode, where the quicksort function calls itself. function quicksort('array') create empty lists 'less' and 'greater' if length('array') ≤ 1 return 'array' // an array of zero or one elements is already sorted select and remove a pivot value 'pivot' from 'array' for each 'x' in 'array' if 'x' ≤ 'pivot' then append 'x' to 'less' else append 'x' to 'greater' return concatenate(quicksort('less'), 'pivot', quicksort('greater'))


How do you create a two dimentional array?

A one-dimensional array is an array where each element in the array points to a specific value of the type specified by the array (all values must be of the same type). For example, we can store integer values in an integer array, character values in a character array and strings in a string array. Multi-dimensional arrays are implemented as one-dimensional arrays where every element is itself a one-dimensional array, for as many dimensions as required. The overall size of any array (in elements) is the product of all its dimensions, thus a two-dimensional array of 4x5 elements has 20 elements in total, divided into 4 arrays of 5 elements each. However, because all the elements are allocate contiguously, any multi-dimensional array can be treated as if it were one-dimensional. Note that every element of an array must be exactly the same length, even when that element is another array. The most common type of array we use is a pointer array (an array of pointer elements). Given that a non-null pointer does not store any size information (the number of elements being referred to), we typically use null-terminated pointer arrays, where a null pointer denotes the end of the array being referred to. This makes it possible to implement "jagged" or "irregular" multi-dimensional arrays, where each dimension can be a different length. An array of variable-length strings is an example of a jagged array, such that each element points to a null-terminated character array.


What is static array and dynamic array in visual basic?

Generally speaking, a static array is a fixed-length array while a dynamic array is a variable-length array. However, we prefer the terms fixed-length and variable-length because static objects are objects that are allocated in static memory at compile time, which means they have a fixed offset address (the offset remains the same for each execution and will not change at runtime). Dynamic objects, on the other hand, are allocated and destroyed at runtime, which means they have dynamic addresses; each time the object is instantiated we cannot guarantee it resides at the same address. To put it another way, all static arrays must be fixed-length arrays, but not all fixed-length arrays must be static arrays. We can allocate a fixed-length array in static memory (in which case it is also a static array), but we can also allocate a fixed-length array on the call stack or on the heap, in which case we can potentially create more than one instance of that array, each with its own unique address. Consider a recursive function that instantiates a local (non-static) fixed-length array: each instance of that function would instantiate a new instance of that array, each with its own unique address. Similarly with multi-threaded applications: each thread has its own call stack, thus we could potentially have multiple threads invoking the same function and thus instantiating multiple instances of the same array in different call stacks, each with its own unique address. And if we allocate a fixed-length array on the heap, we have no guarantee where that array will be allocated. So whenever we speak of static or dynamic allocations, remember that we are specifically referring to the address (or at least the offset address). Dynamic addresses can change at runtime, static addresses cannot. Although the physical address of a static object can change between executions, its offset address (relative to the start of the static data segment) can never change -- not without recompiling the executable.

Related questions

What is memory leakage in terms of arrays?

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


What are the injection and leakage in the economy?

In terms of consumer spending, injection is spending by consumers on consumables (consumption) and leakage is spending by consumers on non-consumables (e.g.) savings; investment; taxation).


do you know what a space is?

In simple terms space is a volume. In complex terms is it is what Einstein called "space time".


What is ISS in terms of astronomy?

In terms of space exploration, ISS is short for the International Space Station.


What is a region in math terms?

It is a subset of the space that, in mathematical terms, you are working in.


What is 'short' in Latin?

Brevis is the Latin equivalent of 'short'. The adjective may refer to brevity in terms of space or of time. In terms of space, it therefore may be translated as 'small' or as 'slight' in terms of weight and 'shallow' in terms of depth.


What is the mantle in space terms?

Wrong category. Not sure what you mean by "space terms". If you astronomically, it's part of the structure of rocky planets such as Earth.


What is an example of a recursive pattern that has 2 and 9 as the first two terms?

a pattern is a pattern guys come on u shoul know that is really very esay i want tell you the answerthink by your self


What is absolute space in terms of physics?

nonexistent


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.


How much space does a ox need?

In terms of what? Stall/barn space? Pasture space? Space for feeding it? Please be more specific!


What does mode mean in a line plot?

The mode is defined as the term which is repeated for the highest number of times in an array or a sequence. If many terms are repeated for a similar number of times and highest, that array has more than one value for mode.