I want this to crash, but it doesn't

前端 未结 4 1240
不知归路
不知归路 2021-01-17 01:06

seriously.. I\'m an old hacker from the 80\'s and with some spare time on my hands thought I\'d \'C\' what the fuss is about

( my background is Forth, which does thi

4条回答
  •  悲哀的现实
    2021-01-17 01:48

    Accessing an array out-of-bounds invokes undefined behaviour. This means that anything could happen, including running without any apparent error.

提交回复
热议问题