Consider the function int func(int num) { int count = 0; while(num) { count++;…
ISRO Scientist/Engineer SC 2017
Consider the function
int func(int num) {
int count = 0;
while(num) {
count++;
num >>= 1;
}
return(count) ;
}For func(435) the value returned is
- A.
9
- B.
8
- C.
0
- D.
10
Attempted by 825 students.
Sign up free to check your answer
Sign up freeLoading lesson…

