What is the value assigned to the variable in each of these cases? Explain curious results.Be careful!
int x,y;
a)x = 1/2;
b)y = 3.0/2.0;
double z,w,t;
c)z = 1/2;
d)w = 3/2;
e)t = 3.0/2.0;
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q21: When you use a double,what is doubled?
Q22: Give the declaration for two variables,feet and
Q23: In C++,a legal identifiers may contain these
Q24: Which of the following are likely to
Q25: Which of the following will properly encode
Q27: An r-value is
A)an expression that can be
Q28: Write a C++ program that outputs "My
Q29: What is the data type of variable
Q30: Given the C++ output statements.What is the
Q31: What is the difference between a warning
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents