Logical Operators
&& :- Logical AND operator. If both the operands are non-zero, then condition becomes true.
|| :- Logical OR Operator. If any of the two operands is non-zero, then condition becomes true.
! :- Logical NOT Operator. Use to reverses the logical state of its operand. If a condition is true then Logical NOT operator will make false.
Example
Assume variable X holds 1 and variable Y holds 0, then:
(X && Y) is false.
(X || Y) is true.
!(X && Y) is true.
We have a team of expert who solve your logical operators c homework and assignment.
Topics in C Programming
Topics in Programming
- Assembly Language
- Ada
- BASIC
- C Programming
- Euphoria
- Game programming language
- Java Assignment Help
- Java Servlets Help
- Machine Language
- Fortran Homework Help
- Pascal
- Python
- Ruby
- Servlet Life Cycle
- Smalltalk
- SOAP
- Perl
- Rexx
- TCL
- Scheme Help
- Lisp
- Logo Help
- Prolog
- COBOL
- REBOL
- Plankalkul Help
- ToonTalk Help