fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. const double x = 2.;
  6. constexpr double y = x;
  7. std::cout << y << std::endl;
  8. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
2