Operator Operand Expression and Statement in c

Here are operator, operand, expression, and statement in C with definitions with example. These are used to make a instruction.

Operator: An operator is a symbol used to perform operations between operands like +, -, *, /, and etc.

Operand: An operand specifies an entity on which an operation is to be performed. An operand can be a variable name. for example a=b+c+d+2; in this statement, a, b, c, d, 2 are the operands, and =,+ are the operators.

Expression: An expression in c is made up of one or more operands and operators for example suppose we write a=2+3, it is an expression, or we write b=c+d+2 it’s also an expression which is consist of operators and operand.

C Statements: A statement in a programming language is analogous to a sentence in natural language. Just as a sentence in the English language is ends with a period(full stop), statements in c language are terminated with a semicolon(;). For example, a=b+c is an expression, when it is terminated by a semicolon(;) ie a=b+c; it becomes a statement. So all the expression which are terminated by a semicolon called statements.

Recommended Post: