I\'m aware that you can read past the end of an array - I\'m wondering now if you can seg-fault just by performing that reading operation though.
int someint
The second line can cause literally anything to happen and still be correct as far as the language specification is concerned. It could print gibberish, it could crash due to a segmentation fault or something else, it could cause power to go out on the entire eastern seaboard, or it could cause the canonical demons to fly out of your nose...
That's the magic of undefined behaviour.