#include <iostream> #include<cstdio> using namespace std; int main() { cout<<(1<<34); // gives output 0 int i=1; i=i<<34; cout<<i ; //gives 4 as out put , why ? return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:7: warning: left shift count >= width of type prog.cpp:10: warning: left shift count >= width of type
00