C – Expressions

Home/C - Tutorial/C – Expressions
C – Expressions 2017-06-12T08:56:40+00:00

Expressions

              An expression is a sequence of operators and operands that specifies computation of a value. An expression may consist of single entity or some combination of such entities interconnected by one or more operators. All expression represents a logical connection that’s either true or false. Thus logical type expression actually represents numerical quantities.

              In C every expression evaluates to a value i.e., every expression results in some value of a certain type that can be assigned to a variable. Some examples of expressions are shown in the table given below.

A+b

3.14*r*r

a*a+2*a*b+b*b

Example :

Output:

Value of a = 123

Value of b = 125

Prev Next