Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Doubt in c prog (http://www.go4expert.com/forums/doubt-c-prog-t5813/)

priyabc 12Aug2007 01:49

Doubt in c prog
 
what will be the result for
!n where n can be any integer...

is this operation possible???? if so what will happen??

DaWei 12Aug2007 06:01

Re: Doubt in c prog
 
! 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.


All times are GMT +5.5. The time now is 21:36.