Source: http://www.dspmuranchi.ac.in/pdf/Blog/GKS_Formatted and Unformatted Input and Output in C.pdf