单项选择题

He went to the market ______.

A.to have his breakfast
B.to buy the beautiful carpet
C.just to have a look