Advertisements
Advertisements
Question
Define the following with an example:
Boolean data type
Definition
Solution
This data type allows variables to be either true or false based on a constant value. These are nonfigurative constants. The default value for a boolean variable is false.
Example: boolean flag = false;
shaalaa.com
Is there an error in this question or solution?
Chapter 1.03: Values and Data Types - EXERCISES [Page 33]