I saw a question in SO and the best answer that could think of was a diagram that I had seen in a book. I took a snapshot, pasted it in my answer and gave a link to the book's website.
Is ok to do this? Is it not illegal?
Generally is it legally and morally an acceptable behavior to give answer by referencing a paragraph in a book that has copyright?