While working with stacks/queues in pop() or dequeue() operations I had bits of code which went like this:
myarray[t--]=null;
The implementation was in the form of an array of ints. I get an error which goes like " cannot be converted to int". Now I realize this reassigning to null isnt explicitly necessary for this implementation since I'm keeping track of the top of the stack. But anyway, how do I overcome this error?