I know power of 2 can be implemented using << operator. What about power of 10? Like 10^5? Is there any way faster than pow(10,5) in C++? It is a pretty straight-forw
No multiplication and no table version:
//Nx10^n int Npow10(int N, int n){ N <<= n; while(n--) N += N << 2; return N; }