by SloopJon · 6y ago · 0 comments
runtime error: index 4 out of bounds for type 'int [4]'
UndefinedBehaviorSanitizer: SEGV on unknown addres
runtime error: reference binding to null pointer of type 'int'
Not if the compiler got to it first. If the compiler does what Chen points out it can do, you won't be indexing anything at run time.