What is stream-of-consciousness writing?

A.

writing that uses only very formal words

B.

writing that represents the flow of thoughts and images in a character’s mind

C.

writing composed of complex sentences only

D.

writing that includes a great deal of slang