Boolean Constants
Datatype
syntax
or
example:
- If a condition is evaluated it may either return true or false based on input given by user,here the boolean constants are true/false.
- We must declare boolean constants in lowercase because both are predefined literals.
Datatype
- datatype is keyword which tells about type of data we are using in a program.
- datatype also allocates memory for a variable.
syntax
- datatype varname;
or
- datatype var1,var2,....;
example:
- char ch;
No comments:
Post a Comment