What is the data type of variable x in the following C++11 code:int y= 2; double z = 3.5; auto x = z * y;
a) int
b) double
c) auto
d) syntax error
b) double
Computer Science & Information Technology
You might also like to view...
Answer the following statements true (T) or false (F)
1) Local variables are initialized to their default values. 2) Attempting to use an uninitialized local variable is a runtime error. 3) It’s always better to get the errors out of your programs at execution time, if possible, rather than at compilation time. 4) The benefits of data integrity are automatic when instance variables are made private.
Computer Science & Information Technology
Compare and contrast the if single-selection statement and the while iteration statement. How are these two statements similar? How are they different?
What will be an ideal response?
Computer Science & Information Technology