If this is true, !(1 && !(0 || 1)) why exactly?
Can anyone explain how this is to be read?
Printable View
If this is true, !(1 && !(0 || 1)) why exactly?
Can anyone explain how this is to be read?
0 || 1
!(0 || 1)
1 && !(0 || 1)
!(1 && !(0 || 1))
actually, go from left to right. parentheses do not change the direction AND operates in, but parentheses can still effect evaluation of either side:
Code:int * p = 0;
if ( !( p && !( *p || 0 ) ) )
printf ( "citizen is right: p == %p\n", ( void * )p );