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: