According to the Public Network Terms of Service (https://stackoverflow.com/legal/terms-of-service/public#licensing), StackOverflow requires users to release their contributions under the Creative Commons CC-BY-SA, and a custom license that is only between the user and service.