Hiccups are typically associated with eating or drinking because the stomach can become distended and irritate the diaphragm below it. This causes the diaphragm to contract like it does when breathing, and it creates hiccups.
According to Medicine Net, you can get hiccups when you're eating because you eat too fast. When you eat quickly, the diaphragm can become irritated, and you can sometimes get the hiccups. This is especially true if you are eating dry foods, like bread products such as bagels or muffins.
Eating Too Much
Medicine Net notes that you can get hiccups from eating too much. When you eat too much your stomach touches your diaphragm, causing irritation. Therefore, you should stop eating before your stomach becomes uncomfortable to avoid hiccups.
There are no real cures for hiccups. However, there are many things you can try to get rid of them, though different methods may work for different people. Some things you can try include holding your breath, drinking a glass of water quickly, having someone scare you, gargling with water and using smelling salts.