SO subscriber content (e.g. answers) are CC BY-SA[0] which "is often compared to “copyleft” free and open source software licenses"[1]
[0] "all Subscriber Content that You contribute to the Network is perpetually and irrevocably licensed to Stack Exchange under the Creative Commons Attribution Share Alike license" http://stackexchange.com/legal