Computer Science, asked by rajimmr16, 4 months ago

stack operation using array in data structure and algorithm ​

Answers

Answered by amitbera1769
5

Answer:

Stack Operations using Array

Step 1 - Include all the header files which are used in the program and define a constant 'SIZE' with specific value.

Step 2 - Declare all the functions used in stack implementation.

Step 3 - Create a one dimensional array with fixed size (int stack[SIZE])

Answered by bach0274
0

Answer:

A stack data structure can be implemented using a one-dimensional array. Just define a one dimensional array of specific size and insert or delete the values into that array by using LIFO principle with the help of a variable called 'top'. ... Initially, the top is set to -1.

Please mark my answer as the brainliest if it was helpful...

Similar questions