#include using namespace std ; //Using auto //-------------------------------------------------------- int main() { int x1 = 27; // x is an int const int cx = x1; // cx is a const int const int& rx = x1; int* ptr1 = &x1 ; const int* ptrc1 = &x1 ; //Can't do //*ptrc1 = 100 ; auto ax1 = x1 ; //ax1 is an int auto acx1 = cx ; //acx1 is an int auto arx1 = rx ; //arx1 is an int const auto acx2 = cx ; //acx2 is a const int const auto& arx2 = rx ; //arx2 is a const int& auto ptr2 = ptr1 ; //ptr2 is a int* auto ptrc2 = ptrc1 ; //ptrc2 is a int* to a constant //Universal reference auto&& ur1 = x1 ; //lvalue reference int& auto&& ur2 = 27 ; //rvalue reference int&& int j1 = 27 ; int j2(27) ; int j3 = { 27 } ; int j4{ 27 } ; auto i1 = 27; //int i1=27 auto i2(27); //int i2=27 auto i3 = { 27 }; // std::initializer_list i3 = std::initializer_list{27}; auto i4{ 27 }; //int i4 = {27}; return 0 ; } //--------------------------------------------------------