basic C programming to display names or messages