Question: What does auto type specifier do in this line of code (since C++11)?

  1. It specifies that the type of x will be deduced from the initializer - in this case, double.
  2. It specifies that the type of x is automatic meaning that if can be assigned different types of data throughout the program.
  3. It specifies that x is a variable with automatic storage duration.
  4. It specifies that more memory will be allocated for x in case it needs more space, avoiding loss of data due to overflow.

Answer: The correct answer of the above question is Option A:It specifies that the type of x will be deduced from the initializer - in this case, double.