Question

Can someone help with this multiple choice question for C++ Suppose that x and y are...

Can someone help with this multiple choice question for C++

Suppose that x and y are int variables, z is a double variable, and the input is:

28 32.6 12

Choose the values of x, y, and z after the following statement executes:

cin >> x >> y >> z;

a.

x = 28, y = 12, z = 32.6

b.

x = 28, y = 12, z = 0.6

c.

x = 28, y = 32, z = 12.0

d.

x = 28, y = 32, z = 0.6

0 0
Add a comment Improve this question Transcribed image text
Answer #1

the output will be d that is x = 28, y = 32, z = 0.6

because here the compiler will take th einput values as three inputs they are int int and double

so when we enter 28 then it take one integer

next when we enter 32.6 here it will 32 as one integer and .6 as double value

Add a comment
Know the answer?
Add Answer to:
Can someone help with this multiple choice question for C++ Suppose that x and y are...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT