I am developing a webapp for my company right now. During the development I've often seeked for help here on the forums when I got stuck. Sometimes I also had to post some code to help other users find out where my mistakes where.

Now, my question is: am I "allowed" to post code of something that will be used by a company, and will eventually be its copyright?

Probably this is a stupid question, but I'm curious to know, in case also for future projects.