Thursday, 11 February 2016

What is the variable type for each of the following declarations

Leave a Comment
What is the variable type for each of the following declarations?
          a. auto cars = 15;
          b. auto iou = 150.37f;
          c. auto level = 'B';
          d. auto crat = U'/U00002155';
          e. auto fract = 8.25f/2.5;

Ans:

a. int

b. float

c. char

d. char32_t

e. double


Reference:

Answers to Chapter Reviews C++ Primer Plus

If You Enjoyed This, Take 5 Seconds To Share It