Suppose that I have a block of code that represents my own original work (i.e. I am the copyright holder), and that I would like to post this code on Stack Overflow--either to answer someone else's question or to ask a question regarding the code.
Let's also suppose that I want to use this code in my own project as well--either one released under a non-copyleft license like the MIT license, or even a closed-source, proprietary program.
If I post my code onto Stack Overflow, which uses the CC-BY-SA 4.0 license (a copyleft license), am I then required to release my project under the CC-BY-SA 4.0 license? Or am I free to use the MIT license or any other license of my choosing?