0 votes 0 votes What if the "||" is replaced with "&&" ? ( What does former condition in "if" results and how ?) HeadShot asked Dec 11, 2018 HeadShot 803 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments HeadShot commented Dec 11, 2018 reply Follow Share @Hemanth_13 actually i want know whats the o/p of 2nd condition in if . is it false too ? "as its addressing out of array and fetching some value, even if its valid, it will not be equal so it will false too" is it correct ? 0 votes 0 votes Hemanth_13 commented Dec 11, 2018 reply Follow Share Segmentation fault I guess 1 votes 1 votes Shivam Kasat commented Dec 12, 2018 reply Follow Share In case of && it is unequal as it will cause segmentation fault and in case of || it will be EQUAL, M I Right? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes if the "&&" is replaced with "||" it will print $equal$ because in OR condition if first expression is true then whole expression become true. prashant281188 answered Dec 12, 2018 prashant281188 comment Share Follow See all 0 reply Please log in or register to add a comment.