Anand N
what is the output if(false&&true||true&&true) { console.write("hello"); } else { console.write("welcome"); }
By Anand N in C# on Jun 10 2013
  • Pankaj  Kumar Choudhary
    Feb, 2015 21

    step:1 First ANDing of false and true will perform and o/p will be false . Step:2 ORing of false and True will perform and o/p will be True Step 3: In final step ANDing of True and true will perform and final o/p will be Trueso if block will be execute and "hello" will print

    • 0
  • Nanhe Siddique
    Feb, 2015 11

    hello because true && true return true false&&true return false here one condition true so it show hello but when you put false&&true&&true&&true in this case you get output welcome because here i using && operator it return false

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS