Why is gets() dangerous?

Can somebody show by example how gets is dangerous?
Last edited on
gets is dangerous because it doesn't know the size of the char array. If the user enters more characters than can be stored in the char array gets will write out of bounds.
Ok. Now I get it.
Topic archived. No new replies allowed.