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 _______.

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...
#1068 MCQ
Consider the following ANSI C program. What is the output of the above program?
#1075 MCQ
Consider the following ANSI C function: The value returned by SomeFunction(15, 255) is _______.
#1088 Fill in the Blanks

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......