fork download
  1. #include <iostream>
  2. #include <climits>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. signed char a = -1;
  8. int b = INT_MAX;
  9.  
  10. cout << (a & b) << endl;
  11. cout << sizeof(a) << " " << sizeof(b) << endl;
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 4336KB
stdin
Standard input is empty
stdout
2147483647
1 4