¿Cuál es la forma correcta para decir "of course not"?
The last one "por supuesto que no" is right. You can also say "claro que no." . There are other ways to say it too. I'm sure many people will answer giving you many options to choose from.
I think we can use Por supuesto que no for Of course not.
'claro que no' can also be used.