You are on page 1of 3

Data types:

If you know how to write a declaration statement(i.e. int


a;), you would probably know that the declaration
statement is used to tell the data type of an identifier to
the compiler before its use.
Expressions
 An a expression is made up of one or more operands.

 The simplest form of an expression consist of single


operand. i.e. 3. But this is not meaningful.

 A meaningful expression consists of one or more


operands and operators that specify the operations to
be performed on operands.
For example: a=2+3 a meaningful expression which
involves three operands, namely a,2 and 3 and two
operators i.e. : = and +
• A expression that has only one operator it
knows as simple expression.
For example :2+3
• While an expression that involves more than
one operator is called compound expression.
For example :b = 2+3*5

You might also like