Using basic concepts of C Programming from C Basics lecture,
create a program that reads input from console with getchar()
function.
Every word will be automatically reversed and printed when the Enter
key is pressed.
Your program will continue receiving words to reverse until one of the following keys are pressed, with no other characters:
EOF
, Control+D
and Enter
- Use the
word-reverser.c
file for your code - Don't forget to test your code before submission
- Submit your code to your personal fork
Build and Test automation is already implemented with the following command. Below some general tips and comments.
- Make sure that your program passes all test cases without errors.
- Remember that this is being executed by a robot script.
- Failed compilation or segmentation faults means 0-graded.
- Failed tests will be properly discounted from total grade.
make
make test
make clean