English

Give reason whether the following assignment is correct or not. boolean p = false; - Computer Applications

Advertisements
Advertisements

Question

Give reason whether the following assignment is correct or not.

boolean p = false;

One Line Answer

Solution

This assignment is correct since false is a valid boolean literal that is assigned to a boolean variable. 

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.03: Values and Data Types - EXERCISES [Page 33]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.03 Values and Data Types
EXERCISES | Q III. 12. (d) | Page 33
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×