What creates irony in a work of literature?

Athe skill of the writer
Bthe contradiction between appearance and reality
Cthe puns, wordplay, and other humorous devices
Dthe characters’ outrageous behavior