Skip to main content
3 events
when toggle format what by license comment
Aug 1, 2017 at 4:21 comment added Incomputable @coder, on successful push you increment top, it is an int, which can overflow, which leads to undefined behavior. Though the contents of the list will remain the same.
Jul 31, 2017 at 14:52 comment added coder I think there will be no case of overflow because we are using linked list and it can change its size dynamically
Jul 31, 2017 at 8:52 history answered ratchet freak CC BY-SA 3.0