1 votes 1 votes Negative Number AND Operation Result in True . Why it is SO ? printf("%d", -1&&1); printf("%d", -1&&-1); Programming in C programming-in-c + – PEKKA asked Dec 12, 2016 PEKKA 245 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes printf("%d", -1&&1); printf("%d", -1&&-1); Is TRUE since in C,it just cares about Zero and Non-zero and since both the side of AND operation it has non-zero number it gives TRUE value Prajwal Bhat answered Dec 12, 2016 Prajwal Bhat comment Share Follow See 1 comment See all 1 1 comment reply PEKKA commented Dec 12, 2016 reply Follow Share @prajwal , I also know that but I was asking the reason for that . 0 votes 0 votes Please log in or register to add a comment.