Copy file

Created on June 4, 2024 by Julien Palard

Implement a program that copies its input to its output.

Here's the spec:

  • reads its standard input using getchar.
  • writes all chars to its standard output using putchar.
  • Only use a single #include: stdio.h.
  • All bytes from the input should be copied to the output until the end.
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.
Keyboard shortcuts:
  • Ctrl-Enter: Send your code to the correction bot.
  • Escape: Get back to the instructions tab.
(Ctrl-Enter)