1, different parts of speech, midnight snack is a noun, midnight snack is a gerund.
2, the meaning is different, midnight snack belongs to meals other than three meals, and people who have nothing to do at night eat some night meals. In fact, midnight snack and midnight snack refer to the same thing.
From the perspective of Chinese character culture in China, midnight snack is a noun, while midnight snack is a gerund. Midnight snack is a spoken language in life, and midnight snack is a title in standard Mandarin. Generally speaking, midnight snack means that people who work at night eat food to satisfy their hunger, while midnight snack means that people who have nothing to do at night eat some supper.
Origin explanation
Midnight snack belongs to gerund and a spoken language in life. Midnight snack is a noun and a written language. In the Song and Yuan Dynasties, the word night snack was common in poetry, and the earliest record that can be found is that Fang Gan mentioned in his poem "Parking in a Monk's House on a Winter Night" that "you can't go to night snack without wine, and you will close the door early with the monks".
Night snack here means killing the night with wine and food. Since the Qing Dynasty, the word "night snack" has sometimes been written as "night snack". Because night snack is a late-night snack, it is famous for midnight snack.