The line above note the semicolon at the end will

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ble should keep track of how many elements you currently have in your stack. What do you think you should initialize it to? What does that variable represent? Please think long and hard about this before asking a TA. Get in the habit of coding deliberately and not just typing away randomly. Also, recall that all arrays passed to a function are passed by reference. This means that all changes made to an array inside a function will also be visible outside the function. Task 2 – Pushing function Declare the following function just below your declaration of the global variables. bool push(int st, int &size, int n); It is always a good idea to first declare your functions before the main function, and then implement them afterwards. The line above (note the semi...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online