engineering computer science MCQ #2128

What is the result of `!0 && 5`?

engineering computer science MCQ #2128

  1. Question 1

    Q1. What is the result of `!0 && 5`?

    • A) 1
    • B) 0
    • C) 5
    • D) Compilation Error

    Answer: 1

    Explanation: !0 is 1, and 1 && 5 is 1 because both are non-zero.