answersLogoWhite

0

yes

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

Can you access data in the middle of the stack?

Usually not, but it depends on the context, I mean what kind of stack are you talking about. For example in FORTH language word PICK and ROLL could be used.


What is the same track on each platter?

A cylinder. Each track on each platter can be thought of as being a ring, thus if you isolated the same track upon each platter you'd have a stack of imaginary rings which would therefore form an imaginary cylinder.


What is implicit stack?

A stack created by the user or a programmer is an implicit stack


Pseudo-code for stack operation?

Here's a simple pseudo-code for basic stack operations: initialize stack push(value): if stack is full: print "Stack Overflow" else: stack[top] = value top = top + 1 pop(): if stack is empty: print "Stack Underflow" return None else: top = top - 1 return stack[top] peek(): if stack is empty: print "Stack is empty" return None else: return stack[top - 1] This pseudo-code includes functions for pushing a value onto the stack, popping a value from the stack, and peeking at the top value without removing it.


Can stack be as a pointer?

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.