fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. cout << 12345678901245LL <<'\n'
  6.  
  7. // long long int literal digit separator
  8. << 12'345'678'901'245LL <<'\n'
  9.  
  10. // binary literal digit separator
  11. << 0b1000'11'1'0ull <<'\n'
  12.  
  13. // hexadecimal literal digit separator
  14. << 0X12A'2b4ull;
  15. return 0;
  16. }
Success #stdin #stdout 0s 4376KB
stdin
Standard input is empty
stdout
12345678901245
12345678901245
142
1221300