Knowledge Point 1. Are there bool types in C language?
From http://blog.csdn.net/liuqiqi677/article/details/6703615
I have never noticed that when I recently wrote a DSP Algorithm in C language, I accidentally found that the bool type variables
Bool DefinitionTypedef int bool;# Define false 0# Define true 1It cannot be fully overloaded (bool is essentially INT), for example:// File. h void F (INT); // OKVoid F (bool); // OK //File. cppVoid F (INT ){/*.... * //} // OKVoid F (bool ){/*.... */
Http://blog.chinaunix.net/uid-28458801-id-3941112.htmlThe difference between false/true and False/true 1. The difference between false/true and false/true: False/true is a new keyword in the standard C + + language, and False/true is through #
BOOL is a standard C + + data type
BOOL is a standard C + + data type, and the value is true and false. A single byte, depending on the compiler, if several bool objects are listed together, each may take up a bit.
BOOL is a Microsoft-defined
Bool and bool
1. bool Definition
Typedef int bool;
# Define false 0
# Define true 1
It cannot be fully overloaded (bool is essentially INT), for example:
// File. h void F (INT); // OK
Void F (bool); // OK //
File. cpp
Void F (INT ){/*.... * //} //
1,Bool? And bool(In vs2012)
The bool keyword isSystem. BooleanAlias(In fact, bool is the basic value type, Boolean is the object, bool is in C #, and Boolean is in. NET Framework. Actually, they are the same. There is no difference)Used to
BOOL Query Descriptionfilter:[], field filtering, not participating in the scoringMust:[], if you have multiple queries, you must satisfy the "and"Should:[], if there are multiple queries that satisfy one or more of the matching "or"Must_not:[], on
I. Differences between bool and bool
1. Different Types
Bool is int type
Bool is Boolean
2. Different Lengths
Bool has only one byte
The bool length depends on the actual environment. Generally, it can be regarded as 4 bytes.
3. Different values
The
I. Differences between BOOL and bool are found on the Internet:
1. Different Types
BOOL is int type
Bool is Boolean
2. Different Lengths
Bool has only one byte
The BOOL length depends on the actual environment. Generally, it can be regarded as 4
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.