Home Modern › Forums › ISRO › Consider the following segment of C-code: The number of comparisons made in the execution of the loop for any n > 0 is: Consider the following segment of C-code: The number of comparisons made in the execution of the loop for any n > 0 is:int j, n;j = 1;while (j <= n) j = j * 2;
(A) |_ log 2n _| * n
(B) n
(C) |_ log2n _|
(D) |_ log2n _| + 1int j, n;j = 1;while (j <= n) j = j * 2;
(A) |_ log 2n _| * n
(B) n
(C) |_ log2n _|
(D) |_ log2n _| + 1
nan