fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. unsigned long ul = 10;
  5. long long unsigned int llui = 20;
  6.  
  7. std::cout << ul << " " << llui << "\n";
  8.  
  9. ul = llui;
  10. ul = static_cast<long unsigned int>(llui);
  11.  
  12. std::cout << ul << " " << llui << "\n";
  13. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
10 20
20 20