I understand that if I want to do 2n then I can do (0x1ul << n) and I will get the result.
What if the processor is big-endian? If I do a shift to the left, will it not result in the wrong output? Will the (0x1ul << n) be wrong i.e. not equal to 2n when we have a big-endian architecture? How can I prove that?