top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to find the no of consecutive 1's in binary numbers using C?

+3 votes
1,072 views

Input: 100 101 110 111
Output: 3

posted Apr 12, 2016 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

A binary string will be given to us and we need to print its 1s and 2s complement of that? C code would be helpful?

+1 vote

How to find first unrepeated character in string using C/C++?

Input       Output     
abc         a    
aabcd       b
aabddbc     c
...