Coding help for C programming

Discussion in 'Meet and Greet' started by sumedh yadav, Aug 18, 2012.

  1. sumedh yadav

    sumedh yadav New Member

    Joined:
    Aug 18, 2012
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    please provide coding for C programming : consider an integer which takes output as 1 or 0's only.rearrange the integer such that all 0's are preceded by all 1's in that integer.

    Sample input :01001110011
    Output: 00000111111
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice