Software Eng question from FE Electrical Practice Exam
In the question below, it states we are pushing the values of D1, D2, and D3 in and them popping them off. Since this is a stack, we are using LIFO. So, it would pop D1 off, D2 and then D3, correct? If that’s the case, then the last value to be popped off would be D3:89AB. So why would this be the value for D1?