In the given sentence, "but" is used as a preposition as it shows the relationship between cancer and smoking.
Adverbs and Adjectives are used to indicate the qualities of verbs and nouns. A verb is used to indicate action.
Hence, the answer is option B.
Create a FREE account and get: