tag:blogger.com,1999:blog-32064785.post7620050126318328345..comments2024-03-29T15:16:22.263+05:30Comments on Freshers Interviews: Microsoft Job Inteview questions on Algorithms and Programmingchaitanyahttp://www.blogger.com/profile/05855949584266440305noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-32064785.post-2528675365549689792008-02-15T18:19:00.000+05:302008-02-15T18:19:00.000+05:30Q NO : 4if x is the given number(!(x&(x-1))?printf...Q NO : 4<BR/><BR/>if x is the given number<BR/>(!(x&(x-1))?printf("YES"): printf("NO");Pradeephttps://www.blogger.com/profile/15129294046913245378noreply@blogger.comtag:blogger.com,1999:blog-32064785.post-84261635086968155802008-02-15T18:16:00.000+05:302008-02-15T18:16:00.000+05:30Q NO : 6while(n){ if(n&1) count+=1; n}...Q NO : 6<BR/><BR/>while(n)<BR/>{<BR/> if(n&1)<BR/> count+=1;<BR/> n<<1;<BR/>}<BR/>printf("%d",count);Pradeephttps://www.blogger.com/profile/15129294046913245378noreply@blogger.com