Input Stack Size 5000 Pusha And Pop Arrays. Need Crtique On Stuff I Have. C Programming?

Pusha and Pop arrays. Need crtique on stuff I have. C programming? - input stack size 5000

Write a program that one of the 30 numbers with the push and pop stack implemented in the sense
below:
A. Declare an integer array with a size of 30 elements.
B. Write a function called "push-to-insert an integer in the field.
C. Write to call a function that eliminates pop the top element of the table.
D. Write is an essential function, the input from the user on the basis of whole numbers: 1 - Push, 2 - POP 3 - DEPARTURE. Always
user of 1 (for PUSH), the integer that follows is the element that needs to be moved.
E. The program prints its elements at the end point of entry stack and displays the maximum size of
Cells increases during the operation.

# Set the value of 30
void push (int value)
(
stack [i] = value;
i + +;
)
int pop ()
(
int temp = stack [i];
stack [i] = 0;
i -;
return temp;
)

2 comments:

gouri m said...

If I = 0, u need a declaration of "spill-over-print"

gouri m said...

If I = 0, u need a declaration of "spill-over-print"

Post a Comment