Yup. You want it to write data beyond the bounds of an array? No problem. You asked for it.
I remember a quotation from when Pascal was taught in schools. You could say the same about Python nowadays:
"Pascal gives you a water pistol filled with distilled water. C not only gives you a loaded .357, it points it at your head as a default. Why do you think Pascal is taught in school? And which would you rather have when there is a hungry bear in the area?"
View all comments
Show parent comment
8
u/amatulic 20d ago
Yup. You want it to write data beyond the bounds of an array? No problem. You asked for it.
I remember a quotation from when Pascal was taught in schools. You could say the same about Python nowadays:
"Pascal gives you a water pistol filled with distilled water. C not only gives you a loaded .357, it points it at your head as a default. Why do you think Pascal is taught in school? And which would you rather have when there is a hungry bear in the area?"