C operator examples
C Programs - Operators
Practice C programs based on arithmetic, relational, logical, bitwise, assignment, conditional, and special operators.
Topic library
9
practice programs
Topic overview
Operators are symbols used to perform mathematical, logical, assignment, comparison, and bitwise operations on operands.
Common C operators include arithmetic operators such as +, -, *, /, and %; relational operators such as == and >=; and logical operators such as &&, ||, and !.
Use these exercises to understand how expressions are evaluated and how operators shape program output.
Practice list
Operator programs in C
- 1C program to find sum of two numbers
- 2C program to perform all arithmetic operations
- 3C program to find perimeter of a rectangle
- 4C program to find area of a rectangle
- 5C Program to find diameter, circumference and area of a circle
- 6C program to convert celsius to fahrenheit
- 7C program to convert fahrenheit to celsius
- 8C program to find power of a number
- 9C program to find square root of a number