About 7,680,000 results
Open links in new tab
  1. C: While Loop With Logical OR - Stack Overflow

    May 7, 2025 · You're using a logical OR, which is true if at least one parameter is true. In other words, the truth table is this: It sounds like you want a logical AND, which is true if both …

  2. C Logical Operators - GeeksforGeeks

    Mar 26, 2025 · OR operator returns true if at least one operand evaluates to true. If the first operand is true, then the further operands will not be evaluated. This is because even if the …

  3. Logical Operators In C (AND, OR, NOT, XOR) With Code Examples

    In this article, we will explore logical operators in C language, their types, usage, etc., with proper code examples. Logical operators are crucial in evaluating conditions and making informed …

  4. C OR Operator - Examples - Tutorial Kart

    C OR returns true if at-least one of the operand is true. Integer value of 1 is equivalent to true, and 0 is equivalent to false. Examples. The following example demonstrates the usage of OR …

  5. C Programming: Logical Operators with Examples - w3resource

    Sep 20, 2024 · Learn how to use logical operators (&&, ||, !) in C programming with detailed examples, explanations, and when to use each operator effectively.

  6. C Logical Operators - Online Tutorials Library

    Logical operators in C evaluate to either True or False. Logical operators are typically used with Boolean operands. The logical AND operator (&&) and the logical OR operator (||) are both …

  7. C logical operators | Microsoft Learn

    Apr 6, 2022 · The following examples illustrate the logical operators: if ( x < y && y < z ) printf( "x is less than z\n" ); In this example, the printf function is called to print a message if x is less …

  8. OR Operator in C | Overview & Research Examples - Perlego

    It is represented by the symbol "||" and is commonly used in conditional statements to check multiple conditions at once. Table 6.4 . The results of these operators are either true or false. …

  9. logical AND and OR in c - Stack Overflow

    Jul 22, 2012 · OR returns 1 if either operand has a non-zero value.

  10. C Logical operators on if statement OR AND - Stack Overflow

    This code is working though: if((buff[0] != 0x0a) && (len == 210)) { printf("badpkt detected from %s\n", xpi); } else { if(mysend(ssl_sd ? ssl_sd[i] : NULL, sd[i], buff, len) <= 0) …

Refresh