Miscellaneous Questions

1
Convert little endian integer to big endian.



2
There are N steps, how many possible ways are there to climb those steps if you can take either 1 or 2 steps at a time.



3
Write a function which simply returns 0X00000000 if input value is 0 else 0XFFFFFFFF. Condition is no branching , no looping and no ternary operators.



4
Find the absolute value of a number i. without branching ii. without branching and relational operator.



5
Find the next highest power of 2 for any given number for 32 bit integer.