&& in cpp
- In C++, the "&&" symbol is used as the logical AND operator.
- It returns true if both operands are true, otherwise it returns false.
- Here's an example:
bool result = (x > 5) && (y < 10);
In this example, "result" will be true if both x is greater than 5 and y is less than 10.