What is function stack-full in algorithm? -
here algorithm of stack, want know can function stack-full, here? or queue.
procedure add(item,a,n,top) if(top>=n) stack-full() top++; a(top) <-- 1 end
it abstract handler handle stack overflow. decide should do: throw exception or increase stack size.
Comments
Post a Comment