codeGK
Code it ALL
C# Booleans - CodeGK
♦ C# Booleans

♣ About C# Booleans

Boolean is used to store truth value.
C# provides 1 bit to the variable assigned for bool Variable.
bool data type can store true and false.

♣ Example1: Booleans in C#

In this example, bool data type is illustrated.
Example
Input:
Output:

♣ Example2: Operations on Booleans in C#

In this example, three(&&, ||, and !) operations on booleans are illustrated.
Example
Input:
Output:
Prev_LessonNext_Lesson
C# Booleans