Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2014 Set 2
Questions

Q10

NAT1 markAlgorithmsEasy

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(435435) is ________

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.