fork(1) download
  1. #include <iostream>
  2. #include <climits>
  3.  
  4.  
  5. int main() {
  6. using namespace std;
  7.  
  8. int x;
  9.  
  10. cin >> x;
  11.  
  12. cout << "x = " << x << endl;
  13. cout << "CHAR_BIT =" << CHAR_BIT << endl;
  14. cout << "sizeof(int) = " << sizeof(int) << endl;
  15. cout << (1 << x) << endl;
  16.  
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 16064KB
stdin
32
stdout
x = 32
CHAR_BIT =8
sizeof(int) = 4
1