Please explain why the same program is giving abrupt output(so many zeros)at the end

Link:https://ide.codingblocks.com/s/296738

just define pre[] && in[]