logo

Crowdly

Browser

Add to Chrome

Consider the following code: for (int i = 0; i < 100; i++) {     x = 10 *...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Consider the following code:

for (int i = 0; i < 100; i++) {

    x = 10 * 20;

}

After optimisation:

x = 10 * 20;

for (int i = 0; i < 100; i++) {

    // no

multiplication inside loop

}

If one multiplication takes 2 units of time, how

much time is saved?

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on lms.vit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome