✏️ Explanatory Question

Explain the following operators:

(a) ++ (Increment Operator)
(b) && (Logical AND)
(c) != (Not Equal To)
👁 1 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

(a) ++ (Increment Operator)

  • Increases value by 1
    👉 Example:
count ++;

Same as:

count=count + 1;

(b) && (Logical AND)

  • Combines two conditions
  • Both must be true

👉 Example:

(x > 0 && y > 0)

(c) != (Not Equal To)

  • Checks inequality

👉 Example:

if (x !=0)