fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int w=32;
  6. int x=1<<w;
  7. int z=1<<32;
  8. cout<<"X : "<<x<<endl; //Case 1
  9. cout<<"Z : "<<z<<endl; //Case 2
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
X : 0
Z : 0