answersLogoWhite

0

Depending on the use , Static data is data that cannot change it is Static so is usually set at the start of the program and cannot change,

In the Forth programming language the stack is the work area of memory you place data onto the stack to manipulate it (example Place 2 and 3 onto the stack, execute the + command removes the top 2 items off the stack adds them together and places the result back onto the stack.)

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Computer Science

How can I efficiently use a stack to sort elements in a data structure?

To efficiently use a stack to sort elements in a data structure, you can follow these steps: Push all elements into the stack. Create a temporary stack to store the sorted elements. While the original stack is not empty, pop an element from the original stack. Compare the popped element with the top element of the temporary stack. If the popped element is greater, push it onto the temporary stack. If the popped element is smaller, keep popping elements from the temporary stack and pushing them back onto the original stack until the temporary stack is empty or the top element is greater. Repeat steps 3-6 until the original stack is empty. The elements in the temporary stack will now be sorted in ascending order. By following these steps, you can efficiently use a stack to sort elements in a data structure.


What is the difference between data varification and data validation?

Data validation makes sure that the data is clean, correct and meaningful, while data verification ensures that all copies of the data are as good as the original.


What is the difference between data, information, and knowledge?

Data refers to raw facts and figures, information is processed data that has context and meaning, and knowledge is the understanding and application of information.


What is the difference between computer data represented by the state of a computer's electrical switches and the meaningful information that is displayed to the user?

Information requires a mind, data is a series of states in the computer. It's like the difference between hearing and listening, one requires a mind the other doesn't.


What data structures is most efficient in terms of both space and time to reverse a string of characters?

Stack

Related Questions

What is the difference between static data member and ordinary data member?

Static data is data that does not change from program load to program exit. Static data member do not apply for c. In c++, a static data member is one that is common for all instances of that class.


Representation of stack data structure in c plus plus?

Stack is an abstract data type that allows you to input and output data in a way that the first data which was placed in the stack will be the last one to get out. We use physical examples of stack in our daily lives such as the stack of dishes or stack of coins where you only add or remove objects from the top of the stack. You can see the implementation in c++ in related links, below.


Difference between static memory devices and dynamic memory devices?

static memory devices are those which stores data permanently as long as power is applied. and dynamic memory devices are those in which data is not permanently stored even with power applied,unless data is periodically rewritten into memory.


How is memory allocated to the private-data member function when an object is not created during the calling process?

A class can have both static and non-static data. Static data is local to the class while non-static data is local to each object of the class. It makes no difference whether static data is global, local to a file, local to a function or local to a class (whether public, protected or private), all static data is allocated within the program's data segment along with all constants. As such they are allocated at compile time.


What is the difference between OLAP and data mining?

difference between Data Mining and OLAP


What is the difference between statistics and static?

Statistics refers to a mathematical analysis that deals with the collection and interpretation of data. Static can refer to a type of electricity, a lack of movement, or a crackling sound in a phone line.heck, I just want the definitions!


What is the difference between allocation and search data structure?

difference between serch data structure and allocation data structure


Difference between stacks and queues?

A stack is a data structure in which last item inserted is taken out first . That's why they are known as LIFO (last in first out). Inserting an item in stack is termed as push and taking an item out from stack I s termed as pop. Some applications of stack are : Polish notation, reversing string, backtracking , quick sort algorithm etc. The queue is a linear data structure where operations od insertion and deletion are performed at separate ends also known as front and rear. Queue is a FIFO structure that is first in first out. Whenever a new item is added to queue, rear pointer is used. and the front pointer is used when an item is deleted from the queue.


Difference between dynamic and static memory allocation?

Static memory allocation is memory allocated on the "stack" and cannot be resized after the initial allocation, while dynamic memory allocation is memory allocated in the "heap", and can be dynamically expanded and shrunk as necessary.


What is the difference between data communication and data communication information2010to2013?

The scope of work and the educational requirements are the difference between data communication and data communication information.


What is the difference between a queue and a stack with example?

A stack is a data structure in which last item inserted is taken out first . That's why they are known as LIFO (last in first out). Inserting an item in stack is termed as push and taking an item out from stack I s termed as pop. Stack pointer is the pointer that points to the top of the stack or that points the item at the top of the stack and help in adding or deleting the item from the top of stack. The queue is a linear data structure where operations of insertion and deletion are performed at separate ends also known as front and rear. Queue is a FIFO structure that is first in first out. types of queues : circular, linear, double ended and priority


What is the difference between primary data and secondary data Don't make it complicated please?

The difference between primary data and secondary data is that primary data is the information from the original research.