Write a function reverse(s) that reverses the character string s . Use it to write a program that reverses its input a line at a time.
reverse(s)
s
#include <stdio.h> #define MAX_LINE 1024 void discardnewline(char s[]) { int i; for(i = 0; s[i] != '