Attento agli indici. Non è consentito un indice negativo in un array.
La prima chiamata a push si traduce come:
codice:if(top<size-1){ ptr[-1]=obj; ++top; return 1; }
Attento agli indici. Non è consentito un indice negativo in un array.
La prima chiamata a push si traduce come:
codice:if(top<size-1){ ptr[-1]=obj; ++top; return 1; }
This code and information is provided "as is" without warranty of any kind, either expressed
or implied, including but not limited to the implied warranties of merchantability and/or
fitness for a particular purpose.