The program takes a filename and a sequence of characters as an argument. These characters are written in reverse order to the file.
The program takes a filename and a sequence of characters as an argument. These characters are written in reverse order to the file.
This isn't a homework on demand site.
If you want help, you need to make an effort first.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.