info@avatto.com
+91-9920808017
0. Consider the following C-program fragment in which i, j, and n are integer variables. for(i = n, j = 0; i > 0; i/ = 2, j + = i); Let val (j) = denote the value stored in the variable j after termination of the for loop. Which one of the following is true?
val(j) = Θ(logn)
val(j) = Θ(√n)
val(j) = Θ(n)
val(j) = Θ(nlogn)
You must be logged in to post a comment.
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login
You must be logged in to post a comment.