[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CLogicalAndOperator
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CLogicalAndOperator
(C) and, && operator
The logical-and-operator is used in conditional statements. You can write both and and &&.
if (x==0 and y==0)
{
/* x and y were equal to zero */
/* Do something */
}
if (x==0 && y==0)
{
/* x and y were equal to zero */
/* Do something */
}
'Logical AND operator' links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
