Source: http://www.rncollegehajipur.in/rn/uploads/products/BCA TDC III Input output statement in C by Dr. Rakesh Ranjan.pdf