having problem in the code

Sabbir Alam

Estimable
Jun 24, 2015
1
0
4,510
#include<stdio.h>

void back_print(void)
{
char ch;
if((ch = getchar())!='\n')
back_print();
putchar(ch);
}
int main()
{
printf("Type a line: ");
back_print();
return 0;
}

can anyone tell me what is happening in the code and how..?