How to run a C program as a daemon?
Neither. If you want to have it behave properly like a real daemon you should place it using the init system - /etc/init.d
( and make appropriate runlevel links in the appropriate /etc/rc.X
folders )
Run a search or have a look at something like this: https://serverfault.com/questions/204695/comprehensive-guide-to-init-d-scripts