answersLogoWhite

0

There are a number of data types that we use in computer science. Bool data type stands for boolean data type. In boolean data type the data is stored in form of 0 ans 1s. On boolean data type logical functions like AND, OR ,NOT ,XOR etc functions can be performed.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

How many bytes are allocated in the bool data type?

bool (lowercase, built-in type) has an unspecified size, but is typically 1 byte. When in doubt, use sizeof( <type> ) to determine the byte count of any data type.


Which data type stores only one of two values?

In Java, such a data type is called boolean. In other programming languages it may be known by different names, including variations of "boolean" such as "bool", and "logical".


What Lead to C C plus plus and java?

(C and Lisp, ... data type") was adopted by many later languages, such as ALGOL 68 (1970), Java, and C#. ... C++ has a separate Boolean data type ( 'bool' ), but with automatic conversions from ... "Report on the Algorithmic Language ALGOL 68


What are the advantages of having various data types for example what is the advantage of having an integer or boolean data type in programming...please answer a.s.a.p?

The various datatypes allow the developer to describe how the data is to be stored inside a program. It also allows the developer or the reader/maintainer of the code to understand the maximum and minimum values that may be stored there. In some cases, the 'bool' type for example, indicate how the data is to be used. A bool variable may have only 1 of two possible values, either true or false. An int (or any variant of int) may not contain fractional values, and so on.


When did Henry Bool die?

Henry Bool died in 1922.


What are the nine basic data types?

Byte Short Int Long Float Double Char Bool String


When did Al Bool die?

Al Bool died on 1981-09-27.


When was Al Bool born?

Al Bool was born on 1897-08-24.


When was Choi Bool-am born?

Choi Bool-am was born on 1940-06-15.


Program to do for cplusplus that needs the else if ladder can you tell you how to do that?

if (bool expression 1){...}else if (bool expression 2){...}else if (bool expression 3){...}


What is the C plus plus code using Boolean value as output?

The question is not clear. If you mean can you write a C++ program such that the main function returns a boolean, the answer is no, you cannot. The main function must return an int to the operating system. However, the return value can be treated as boolean such that non-zero indicates true (an error has occurred) and zero indicates false (no error). Unlike C, C++ does include a primitive bool data type which can only be true or false. All the comparision operators such as ==, !=, <, <=, > and >= return bool and all the integral data types (int, char, wchar_t) can be implicitly converted to and from bool. Converting a bool to an int returns the value -1, since false is typically imlemented with all bits set while true is implemmented with all bits unset.


How do you pronounce Boole?

Boole is pronounced as "bool" with a long 'u' sound.