I am still needing help understanding logical operators.
assuming i = 4 and j = 2 and k = -2
what do the following yield???
Code:
printf("%d ", !i < j );
printf("%d", !!i < !j );
printf("%d ", i && j || k );
printf("%d", i < j || k );
what does !i mean?
what does !!i mean?
what does !i < j mean?
what does !!i < !j mean?
what does i && j mean?
what does i && j || k mean?
I am confused. When I input the above code in and compiled and ran, I got a result of [size=huge]1[/size] for each print function called.
??