Question 19

Consider the program
void function (int n) {
int i, j, count = 0;
for (i = n/2; i <= n; i++)
for (j = 1; j <= n; j = j * 2)
count++;
}
The complexity of the program is


Create a FREE account and get:

  • Download Maths Shortcuts PDF
  • Get 300+ previous papers with solutions PDF
  • 500+ Online Tests for Free

cracku

Boost your Prep!

Download App