Check Your Progress
Check Your Progress
3.3.1
1. a) - iv
b) - iii
c)- i
d) - ii
2. a) Formatted input/output allows us to read the input or display the output to be
formatted as per our requirements. Formatting implies specifying where you want
the output to appear on the screen, how many spaces do you wish to have
between the various outputs, the number of decimal places after the decimal
point in case of float data etc. Thus in formatted input/output we input or output
data which has been arranged in a particular format.
b) getche() and getchar() are both functions used to read a character. getche() and
getchar() both echo (display) the character that is typed on the screen. However
the difference between these is that getchar() requires the user to hit the Enter
key after the character is typed in and getche() does not.
Input/Output / 67