Answer Posted / surya8273@gmail.com
push means inserting an element on to the top of the stack.
lets define array of size 10,
int a[10]
Top<== -1 // stack is empty now.
Push(x)// x is a element to be push.lets take x=4
{
top<== top+1
// top will initialize to 1,now the top will be address to the 0 th index of array.//
a[Top]<== x
// insert x in to the 0th index of array(a[0]<== 4)//
}
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
officer say me - i am offered to a smoking , then what can you say
What is interface? When and where is it used?
What is destructor oops?
What is class in oop with example?
What is the use of oops?
What are the 5 oop principles?
any one please tell me the purpose of operator overloading
What is the main feature of oop?
What is the main purpose of inheritance law?
What is the oops and benefits of oops programming?
What is balance factor?
Can main method override?
What is polymorphism programming?
Can enum be null?
Why do while loop is used?