1 votes 1 votes Programming in C programming-in-c + – Jaspreet Kaur Bains asked Jan 7, 2018 Jaspreet Kaur Bains 1.0k views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments gauravkc commented Jan 7, 2018 reply Follow Share a = 1 Thus a is true. Now, to optimize, as we know, if anyone of conditions is true, OR is true. Hence, C will skip checking further conditions. 1 votes 1 votes srestha commented Jan 7, 2018 reply Follow Share if it is bitwise OR then ans will be 2,0 right? 0 votes 0 votes gauravkc commented Jan 7, 2018 reply Follow Share 1,0 Since it is post increment/dec, a and b will be bitwise OR-ed first and then incremented/dec. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes no it didn't update the value of b because in C language while handling with boolean operator OR it just compute first operand and moves to second if only first is false skyby answered Jan 7, 2018 skyby comment Share Follow See all 0 reply Please log in or register to add a comment.