Question: What types are assigned to v1, v2, v3, v4, and v5 in the following code (assuming the code is part of a complete program)? int
What types are assigned to v1, v2, v3, v4, and v5 in the following code (assuming the code is part of a complete program)?
int g(int x);
...
float m = 5.5f;
float & rm = m;
decltype(m) v1 = m;
decltype(rm) v2 = m;
decltype((m)) v3 = m;
decltype (g(100)) v4;
decltype (2.0 * m) v5;
Step by Step Solution
3.46 Rating (159 Votes )
There are 3 Steps involved in it
a int gint x float m 55f b float m 55f is an error as is incompatible with c float r ... View full answer
Get step-by-step solutions from verified subject matter experts
