Which of the following code replacements is an example of operator strength reduction?

1
Replace P^2 by P*P
2
Replace P*16 by P ≪ 4
3
Replace pow(P, 3) by P*P*P
4
Replace (P ≪5) – P by P*3

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation