That depends on people, but I usually say thanks (감사합니다), when I receive food from the waiter. Some people just say yes (네) or nod politely too. It is also the same in the grocery store. I would say hi (안녕하세요) when entering and thanks, bye (감사합니다, 안녕히 계세요) when leaving the store. It's better to be polite I think :)