M
Q. What will be the output of the following code snippet?
#include <stdio.h> void solve() { int n = 24; int l = 0, r = 100, ans = n; while(l <= r) { int mid = (l + r) / 2; if(mid * mid <= n) { ans = mid; l = mid + 1; } else { r = mid - 1; } } printf("%d", ans); } int main() { solve(); return 0; }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. In the following C code, the union size is decided by?
Q. How many types of qualifiers are there in C language?
Q. What is the extension of a C language header file?
Q. Which one of the following sentences is true ?
Q. The ________ operator is true only when both the operands are true.
Q. What will be the output of the following C co #include
Q. Which function is used to delete the allocated memory space?
Discusssion
Login to discuss.