27 votes 27 votes 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 ________ Algorithms gatecse-2014-set2 algorithms identify-function numerical-answers easy + – go_editor asked Sep 28, 2014 edited Nov 2, 2017 by kenzou go_editor 11.4k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply BILLY commented Apr 16, 2016 reply Follow Share will left shift will in multiplication? 0 votes 0 votes Prasanna commented May 9, 2016 reply Follow Share yes 0 votes 0 votes Abheet Gupta commented Dec 15, 2018 reply Follow Share Operator is right shift. >> 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes While condition is true 9 times only hence output is 9 as count was given only 9 times chance to update itself. Thanks shashankrustagi answered Dec 10, 2020 shashankrustagi comment Share Follow See all 0 reply Please log in or register to add a comment.