I was going threw a book learning about C language and I had a few questions if someone could help me out to clarify a few things.
Float or double….why is one better than the other? From what I understand the double is more precise than the float. If that is so why use the float?
What is the difference between getc and getchar? Aren’t they basically the same thing?
What is the difference between putc and putchar? The only difference I see is that putc requires that you use the variable name and stdout “ putc(variable_name, stdout) “ and putchar only requires the variable name “ putchar( variable_name) “ . Is that the only difference? If so then what is the purpose of “putc”?
Precision specifier question. When I run the program the integer 17 will print out 017 which I understand, and the 11.7 will print out 11.700, and I understand the .700, but I don’t quit understand the purpose of the -3. what is its purpose. Isn’t the “-“ simply a left specification? I would have thought that 11.7 would have appeared as 011.700. What is the purpose of the number 3 after the negative sign in the second print statement?