I have heard about a buffer overflow and I would like to know how to cause one.
Can someone show me a small buffer overflow example? New(And what they are used for?)
If you want to check you program for buffer overflows, you could run it with tools like Valgrind. They will find some memory management bugs for you.