replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
If your program is reading or writing on one in each step basis always try to use read and write function instead of getchar() and putchar().
Example (Reverse stdin and place on stdout Reverse stdin and place on stdout)
main(_){write(read(0,&_,1)&&main());}
Exercise:Use this technique to get a good score here.