I found couple of websites that lets you test and share code quickly.
This first one is great tool if you want quickly test something (if code is valid or not etc.). This tool supports almost any (relevant) language imaginable. http://www.compileonline.com/compile_c_online.php
The second one is simpler, but it lets you share the code easily. Here I tested syntax for a function pointer that has a function pointer as a parameter: http://codepad.org/LxLqcKRM
couldnt get first one to load but problem is probably my end, there is another that i can never remember the name of thats good for code shareing and a good database of all kinds of code and routines, its kind of a code search engine i think its called koders, shame there isnt a sticky with this stuff in! maybe even a sub forum with mainly stickies of useful info and links??