Input and Output Functions in C