Home / Questions / Explain the following operators: (a) ++ (Increment Operator) (b) && (Logical AND) (c) != (Not Equal To)
Explanatory Question

Explain the following operators:

(a) ++ (Increment Operator)
(b) && (Logical AND)
(c) != (Not Equal To)
👁 0 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

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)