A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/algorithm/../../cpp/../c/language/../language/bool_constant.html below:

Predefined Boolean constants (since C23)

[edit] Syntax true (1) (since C23) false (2) (since C23) [edit] Explanation

Keywords true and false represent predefined constants. They are non-lvalues of type bool.

[edit] Notes

See integral conversions for implicit conversions from bool to other types and boolean conversions for the implicit conversions from other types to bool.

Until C23, true and false were implemented as macros provided in <stdbool.h>. An implementation may also define bool, true, and false as predefined macros in C23 for compatibility.

[edit] Example
#include <assert.h>
 
int main()
{
    assert(true == 1 && 0 == false);
}
[edit] References
[edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4