C – Expressions

Home/Learn C Programming/C – Expressions
C – Expressions 2017-08-05T14:39:53+00:00

Expressions :

  • Expressions is a sequence of operators and operands that specifies computation of a value. An expressions 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 expression are shown in the table given below.

A+b

3.14*r*r

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

C – EXPRESSION EXAMPLE PROGRAM :

Output:

Value of a = 123

Value of b = 125

Prev Next