Challenge 2: Three auto Variables and Their Deduced Types — Possible Solution ==================================================================== #include int main() { auto count = 5; // deduced as int auto price = 19.99; // deduced as double auto name = "Alice"; // deduced as const char* std::cout << count << std::endl; // int std::cout << price << std::endl; // double std::cout << name << std::endl; // const char* return 0; } Output: 5 19.99 Alice Deduced types, by initializer: - count: auto deduces int, because 5 is an integer literal with no decimal point or suffix. - price: auto deduces double, because 19.99 is a floating-point literal, and C++'s default floating-point literal type is double (not float). - name: auto deduces const char*, because "Alice" is a string literal, which in C++ has type const char[6] that decays to const char* in this context -- the same array-to-pointer decay behavior the site's own C course covered for arrays generally. WHY THIS WORKS AS AN ANSWER ------------------------------ Each variable's deduced type is stated explicitly and justified by the specific literal form used to initialize it (integer literal, decimal literal, string literal), rather than just asserting "auto figures it out" -- showing genuine understanding of how auto's deduction rule actually reads each initializer's own type.