Computer Science, asked by Tejasv21, 1 year ago

difference between Boolean literal and character literal

Answers

Answered by skyfall63
14

Boolean literals:  

The literal which stores a Boolean values that is, it has only two possible values which will represent the two truth values which are logic and Boolean algebra. The values may be true or false.  

Example:

If the student is pass in the exam then the value is true.

If the student is fail then the value is false.

Character literals:  

The literal which stores a single character which are enclosed within the single quotes.  

Examples:

'k', '7', and more

Answered by ajaymadhusingh4
6

Answer:

1:boolean have results in true and false only

2:a Boolean literal stores a Boolean value either true or false

CHARACTER

1:character literal stores a variable with sing quote

2: it represents all things with a symbol

hope it works

Similar questions