shamas195 0 Newbie Poster

if top=0
write:"stack is empty"
else
top__
push(stack,N,top,x)
if top=N
write:"stack is full"
else
settop:=top+1
set:stack top[x]

if top=0
write:"stack is empty"
else
top__
push(stack,N,top,x)
if top=N
write:"stack is full"
else
settop:=top+1
set:stack top[x]
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.