Doubt in c prog

priyabc's Avatar, Join Date: Feb 2007
Light Poster
what will be the result for
!n where n can be any integer...

is this operation possible???? if so what will happen??
DaWei's Avatar, Join Date: Dec 2006
Team Leader
! 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.