+ 2

Why it is not showing error even after exceeding the size ?

https://code.sololearn.com/cEDpquygt87a/?ref=app

9th Sep 2018, 8:13 AM
Pva
2 Answers
+ 10
"gets" is obsolete. Do not use it, it does not warn you of overflows.
9th Sep 2018, 8:37 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
You're overwriting the stack. Trivial corruption is visible by entering exactly 12 a's at the prompt.
29th Oct 2018, 2:27 AM
Kirk Schafer
Kirk Schafer - avatar