Which is faster? 1<<n, or, store and get from a array(1, 2, 4, 8, ..., 1024)?

which is faster? 1<<n, or, store and get from a array(1, 2, 4, 8, …, 1024)?

In the absence of additional context: Use the left shift operator.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.