|
What does the keyboard send to your program when you type the following: 1234 A good answer might be:The characters '1' , '2' , '3' , and '4' . |
Characters In, Characters OutThe data a keyboard sends to a program is character data, even when the characters include the digits '0' through '9'.
If your program does arithmetic, the input characters will be converted into one of the primitive numeric types. Then the result is calculated (using arithmetic), and then the result is converted to character data. The information a program sends to the monitor is character data:
|
QUESTION 4:
|