Note all these may not have solutions, eg a C programmer cannot get a '*/' into a comment however he may try. However he can get a '\' into a string or a quote mark itself with '\\' and '\"'. For getting a '%' into a printf format however, '\%' is not the way but '%%' Such things are documented (and taught to) C programmers.
Just expressing a similar need of org-moders!
Regards,
Rusi