Hiccups are caused by not having enough air. Scaring some one causes them to take a deep breath getting more air and stopping the hiccups. Not 100% sure that's right though.
I found this question elsewhere on this site. I will repeat their answer to you, so all of the credit for answering this goes to Pandamille.
"C. Limit your fat and sugar intake and eat more fruit and vegetables."