Computer Sciences > GATE 2014 SET-2 > C
Consider the function func shown below:
int func(int num) {
int count = 0;
while (num) {
count++;
num >>= 1;
}
return(count);
}
The value returned by func(435) is _______.
int func(int num) {
int count = 0;
while (num) {
count++;
num >>= 1;
}
return(count);
}
The value returned by func(435) is _______.
Correct : 9
Similar Questions
Consider the following ANSI C program: int main() { Integer x; return 0; } Which one of the following phases in a seven-phase C compiler will throw an erro...
Consider the following ANSI C program.
What is the output of the above program?
Consider the following ANSI C function:
The value returned by SomeFunction(15, 255) is _______.
Total Unique Visitors
Loading......