About 36,700 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 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 …

  3. bool type - C# reference | Microsoft Learn

    Jan 20, 2026 · To perform logical operations with values of the bool type, use Boolean logical operators. The bool type is the result type of comparison and equality operators.

  4. 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 …

  5. 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 …

  6. Boolean vs. Bool — What’s the Difference?

    Mar 28, 2024 · Boolean refers to a data type representing two values (true or false), while bool is a specific implementation of the Boolean type in certain programming languages like C++ and Python. …

  7. What Is a Boolean Data Type, and What Are Some Uses? - SitePoint

    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 …

  8. 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: char, …

  9. C Booleans - W3Schools

    Very often, in programming, you will need a data type that can only have one of two values, like: For this, C has a bool data type, which is known as booleans. Booleans represent one of two values: true …

  10. Boolean Type (GNU C Language Manual)

    The unsigned integer type bool holds truth values: its possible values are 0 and 1. Converting any nonzero value to bool results in 1. For example: Unlike int, bool is not a keyword. It is defined in the …