Suppose you have a program that reads an integer, followed by a character, using the following prompt
Question:
Suppose you have a program that reads an integer, followed by a character, using the following prompt and READ statement:
WRITE(Enter an integer and a character ∶
READ (intval, charval);
When you run the program, you type in the following, in response to the prompt
Enter an integer and a character ∶
1257
z
When you check the value of charval, you discover that it does not contain “z”. Why not? What would you expect to find there?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
The Architecture of Computer Hardware, Systems Software and Networking An Information Technology App
ISBN: 978-1118322635
5th edition
Authors: Irv Englander
Question Posted: