The Question : 295 people think this question is useful Given by a colleague as a puzzle, I cannot figure out how this C program actually compiles and runs. What is this >>>= operator and the strange 1P1 literal? I have tested in Clang and GCC. There are no warnings and the output is “???”
The Question : 297 people think this question is useful Multiplication and division can be achieved using bit operators, for example and so on. Is it actually faster to use say (i<<3)+(i<<1) to multiply with 10 than using i*10 directly? Is there any sort of input that can’t be multiplied or divided in this way?