fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. using namespace std;
  6. int a = 10;
  7. decltype(a) b = a;
  8. decltype((a)) c = a;
  9. b = 11;
  10. c = 12;
  11. cout << a << ", " << b << ", " << c << endl;
  12. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
12, 11, 12