+ 2
Why it is not showing error even after exceeding the size ?
2 Answers
+ 10
"gets" is obsolete. Do not use it, it does not warn you of overflows.
+ 1
You're overwriting the stack. Trivial corruption is visible by entering exactly 12 a's at the prompt.