Thread: 1>>5(?)

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    1

    Arrow 1>>5(?)

    hiii,
    iam the beginning of C ,

    my simple Q? is :

    1>>5(right shift operation )

    what is the out put ?????

  2. #2
    Registered User
    Join Date
    Sep 2010
    Location
    China
    Posts
    12
    output is 0

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    It might have been more accurate to ask what is the result rather than what is the output, but why didn't you write a program to find out the answer for yourself?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed