About 38,400 results
Open links in new tab
  1. Boolean data type - Wikipedia

    In computer science, the Boolean (sometimes shortened to Bool) is a data type that has one of two possible values (usually denoted true and false) which is intended to represent the two truth values …

  2. bool type - C# reference | Microsoft Learn

    Jan 20, 2026 · The bool type keyword is an alias for the .NET System.Boolean structure type that represents a Boolean value, which can be either true or false. The C# language reference …

  3. bool in C - GeeksforGeeks

    Jan 10, 2025 · The bool in C is a fundamental data type in most that can hold one of two values: true or false. It is used to represent logical values and is commonly used in programming to control the flow …

  4. C Booleans - W3Schools

    Booleans represent one of two values: true or false. In C, the bool type is not a built-in data type, like int or char. It was introduced in C99, and you must include the following header file to use it: A …

  5. C++ keyword: bool - cppreference.com

    Sep 1, 2024 · Fundamental types: void, std::nullptr_t (since C++11). Integral types: int. Modifiers: signed, unsigned, short, long. Boolean type: bool. Boolean literals: false, true. Character types: …

  6. C - Boolean - DevTut

    bool is just a nice spelling for the data type _Bool. It has special rules when numbers or pointers are converted to it. Using #define C of all versions, will effectively treat any integer value other than 0 as …

  7. What Is a Boolean? - Computer Hope

    Jun 1, 2025 · In computer science, a boolean or bool is a data type with two possible values: true or false. It is named after the English mathematician and logician George Boole, whose algebraic and …

  8. An Essential Guide to the C Boolean Types By Examples

    In programming, the Boolean type has two possible values that represent the truth values: true and false. C doesn’t natively support the boolean type. In C, zero means false. Other values are true. For …

  9. What's the difference between "bool" and "bool?"?

    Oct 5, 2016 · The ? symbol after a type is only a shortcut to the Nullable type, bool? is equivalent to Nullable<bool>. bool is a value type, this means that it cannot be null, so the Nullable type basically …

  10. What Is a Boolean Data Type, and What Are Some Uses?

    Apr 25, 2021 · In computer programs, there are three types of data: text, numbers and Booleans. A Boolean data type is a value that can only be either true or false (these are known as Boolean