Tricking the program !!!

Actually this is a quite absurd question . But I read somewhere that one could input specially crafted input into programs which can make the program do something else than it is intended to do .

Can anybody tell me how to do so .

//