The MIT License – Clarity on Using Stack Overflow Code
meta.stackoverflow.com
meta.stackoverflow.com
Nobody (at least as far as I can tell.) is posting proprietary or self-written code under the pretence that they will receive attribution under a nominated license. It's a question and answer website, it's not a repository for complete software or work that needs to be protected under license.
Under current US law, just because something is publicly viewable doesn't mean it's in the public domain.