看板 Grad-ProbAsk 關於我們 聯絡資訊
※ 引述《st84514 (綜合水果武士)》之銘言: : (1). : Consider the given array-implemented stack. Please given the output value of : the POP operation and draw the stack after each POP or PUSH operation. : Operation:POP,POP,POP,PUSH’c’,PUSH’d’. : STACK: : 0 1 2 3 4 5 6 7 8 9 : |A | B | | | | | | | | | 我會覺得這題出錯了… pop三次? 當然了硬要寫的話就是如下 POP: output: B 0 1 2 3 4 ... A POP: output: A 0 1 2 3 4 ... POP: Error: stack is empty!! PUSH D 0 1 2 3 4 ... C PUSH D 0 1 2 3 4 .... C D : (2). : If, in a single contiguous memory management system for the main memory with : 64K Bytes, the program is loaded at address 30215,compute the physical : addresses(in decimal) that corresponds to the following logical addresses: : (1)8223;(2)1302 (1) 30215 + 8223= 38438 (2) 30215 + 1302= 31517 (這題有這麼簡單? XD) : 懇請高手幫忙解答... : 感激不盡! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.126.187.85