Tuesday 7 July 2020

OR Logic In C++


                                             OR Logic
OR Logic symbol in C++ is “||”.Lets Consider same example: Consider three int a b & c having value 2 ,3 ,8 respectively.if we apply condition a>b & c>b .





Now in this case there will be a output because For OR logic Only one condition is needed to be true and in this example c>b is true .



No comments:

Post a Comment