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:
    http://www.daweidesigns.com
    ! 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

  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