operators

C Operators

C Operators

Operators are used to perform operations on variables and values. C supports a variety of operators.

Types of Operators

Example of Arithmetic Operators

#include 

int main() {
    int a = 10, b = 5;
    printf("Addition: %d\n", a + b);
    printf("Subtraction: %d\n", a - b);
    printf("Multiplication: %d\n", a * b);
    printf("Division: %d\n", a / b);
    return 0;
}
    

This program demonstrates arithmetic operations such as addition, subtraction, multiplication, and division.