Re: [algogeeks] how to find K most significant digit of a number..???

2011-08-13 Thread SANDEEP CHUGH
this routine will extract k msb's and will print them n is the number,, and k is the no of bits u wnt to print.. void k_msb(int n, int k) { int mask; int count=0; int r; for(int i=31;i>=0;i--) { if(count==k) break; mask=1 > -- > You r

[algogeeks] how to find K most significant digit of a number..???

2011-08-13 Thread Mohit Goel
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at ht