I know there are many topics on this subject but none of them helped me to fix my problem. I work on Code::Blocks (with the option -std=c99 in "Properties>Project Build Options>Compiler Settings>Other Options") and the following code doesn't give the expected output:
long long val=1<<33;
printf("value: %llu",val);
In fact I obtain "value: 0" in the terminal. How can I fix that problem?
When I write 30 instead of 33 (so val is an integer), I get the rigth answer. I have also tried %lld but that does not help.