1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Doubt in c prog

Discussion in 'C' started by priyabc, Aug 11, 2007.

  1. priyabc

    priyabc New Member

    Joined:
    Feb 9, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    what will be the result for
    !n where n can be any integer...

    is this operation possible???? if so what will happen??
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    ! is the logical negation operator. It will produce 0 if the operand is non-zero and 1 if the operand is zero. You could learn this in the most rudimentary documentation of the language.
     

Share This Page