Assignment 5 Question 3
#include <stdio.h>
void revstr() {
int ch = getchar();
if (ch == EOF) return;
revstr();
putchar(ch);
}
int main() {
revstr();
return 0;
}
void revstr() {
int ch = getchar();
if (ch == EOF) return;
revstr();
putchar(ch);
}
int main() {
revstr();
return 0;
}
Comments
Post a Comment