Suppose that x and y are of type int, z is of type double, and ch is of type char. Consider the following cin statement

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
Suppose that I and y are of type int, z is of type double, and ch is of type char.
Consider the following cin statement
cin >>x
>>
y >>ch>>
If the input is
12
0.45A
32
What will be stored in x, y, z, and ch?
x = 12 y = 45 ch ='A' and z = 32.0
x = 12 y = 0 ch = and z = 32.0
X = 12 y = 0.45 ch ='A' and z =32.0
none of these
Transcribed Image Text:Suppose that I and y are of type int, z is of type double, and ch is of type char. Consider the following cin statement cin >>x >> y >>ch>> If the input is 12 0.45A 32 What will be stored in x, y, z, and ch? x = 12 y = 45 ch ='A' and z = 32.0 x = 12 y = 0 ch = and z = 32.0 X = 12 y = 0.45 ch ='A' and z =32.0 none of these
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Concept of pointer parameter
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning