fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int i,j;
  8. i=0x7fffffff;
  9. j=0xffffffff;
  10. for(int k=31;k--;i>>=1,j>>=1)
  11. cout << hex << i << "\t" << j << endl;
  12. cout << (j>>4) << endl;
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2828KB
stdin
Standard input is empty
stdout
7fffffff	ffffffff
3fffffff	ffffffff
1fffffff	ffffffff
fffffff	ffffffff
7ffffff	ffffffff
3ffffff	ffffffff
1ffffff	ffffffff
ffffff	ffffffff
7fffff	ffffffff
3fffff	ffffffff
1fffff	ffffffff
fffff	ffffffff
7ffff	ffffffff
3ffff	ffffffff
1ffff	ffffffff
ffff	ffffffff
7fff	ffffffff
3fff	ffffffff
1fff	ffffffff
fff	ffffffff
7ff	ffffffff
3ff	ffffffff
1ff	ffffffff
ff	ffffffff
7f	ffffffff
3f	ffffffff
1f	ffffffff
f	ffffffff
7	ffffffff
3	ffffffff
1	ffffffff
ffffffff