# Hierarchy of Operators Revisited in C

Since we have now added the logical operators to the list of operators we know, it is time to review these operators and their priorities.

The higher the position of an operator is in the table, higher is its priority.

The following figure summarizes the working of all the three logical operators.

## Related Posts

- 77
- 75
- 68
- 66
- 65Problem Statement: If a four-digit number is input through the keyboard, write a program to obtain the sum of the first and last digit of this number. Solution: /* Sum of 1st and last digit of a four digit number */ #include<stdio.h> #include<conio.h> main() { int n,a,sum=0; clrscr(); printf("\Enter a…