If I want to copy a method from Stack Overflow, I usually put the name of the author and the link in a comment above it. I'm just wondering if there's any license in effect for all the code put in answers and questions as sample.


Look at the very bottom of every page:

site design / logo © 2017 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required

And back in 2011:

site design / logo © 2011 stack exchange inc; user contributions licensed under cc-wiki with attribution required

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .