# Operators and separators in C programming

Each C program is developed utilizing 5 elementary items such as key phrases, identifiers, operators, separators, and literals. Hence, right here on this publish we are going to give attention to operators and separators.

## Operators in C

The operator is a logo given to an operation because that operates on some worth. Hence, it tells the computer to carry out some mathematical or logical manipulations. Comparable to `+` is an arithmetic operator used to add two integers or actual varieties.

C language gives a wealthy set of operators. Operators are categorized into the following classes primarily based on their utilization.

1. Arithmetic operators
2. Assignment operators
3. Relational operators
4. Logical operators
5. Bitwise operators
6. Increment and Decrement operator
7. Conditional (Ternary) operator
8. Other operators

### Numerous operators in C programming

Allow us to suppose `a = 10``b = 5`.

Learn More

## Separators in C

Separators are used to separate one programming ingredient from different

Comparable to separating key phrases from the key phrases, key phrases from the identifier, an identifier from a different identifier, and so forth. They’re much like punctuation marks such as in English paragraphs. In C programming each expression is separated utilizing white area  characters, and thus statements are separated from different utilizing semicolon ‘;’.

We will use any variety of white area characters because to separate two expressions. Nonetheless, we should  use not less than a single white area character to separate one programming ingredient from different.  We will additionally use a variety of semicolons to separate one assertion from different.

Notice: We will write a whole C program in two strains because if correct separators are used. Thus, take an instance of under two applications.

``````#embody <stdio.h>
int major(){int a=10;int b=20;int c=a+b;printf("Sum=%d",c);return 0;}``````

The above program shows a sum of two numbers 10 and 20 thus, utilizing a minimal variety of separators. Nonetheless, it’s much less readable and regarded as poor programming apply. We should use correct separators (areas and indention) hence, to make the system readable.

Think about the identical program written with correct separators and is way more readable than the earlier programs.

``````#embody <stdio.h>

int major()
{
int a = 10;
int b = 20;
int c = a + b;

printf("Sum=%d", c);

return 0;
}``````