C Language Q & A #10
When using redirection of output, my screen was completely blank, so I couldn’t see any prompts or text output from the program. With more complicated problems this wouldn’t be feasible. Is there a better way ?
- You can use a statement which sends characters directly to the printer. This approach requires that you use two output statements, one using printf which sends characters to the screen, and one using fprintf which sends characters to the printer: