Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing

Operators:

C operators are symbols used to perform operations on variables and values. Here are some common operators in C:

  1. Arithmetic Operators:

    • Addition (+)
    • Subtraction (-)
    • Multiplication (*)
    • Division (/)
    • Modulus (%)
  2. Assignment Operators:

    • Assignment (=)
    • Addition assignment (+=)
    • Subtraction assignment (-=)
    • Multiplication assignment (*=)
    • Division assignment (/=)
    • Modulus assignment (%=)
  3. Increment and Decrement Operators:

    • Increment (++)
    • Decrement (--)
  4. Relational Operators:

    • Equal to (==)
    • Not equal to (!=)
    • Greater than (>)
    • Less than (<)
    • Greater than or equal to (>=)
    • Less than or equal to (<=)
  5. Logical Operators:

    • Logical AND (&&)
    • Logical OR (||)
    • Logical NOT (!)
  6. Bitwise Operators:

    • Bitwise AND (&)
    • Bitwise OR (|)
    • Bitwise XOR (^)
    • Bitwise NOT (~)
    • Left shift (<<)
    • Right shift (>>)
  7. Conditional Operator (Ternary Operator):

    • ?: (Conditional expression)
  8. sizeof Operator:

    • sizeof (Returns the size of a data type or variable)
  9. Comma Operator:

    • , (Used to separate expressions)

These operators are fundamental to performing various operations in C programming.



Advertisement





Q3 Schools : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML

CSS

JavaScript

Python

SQL

Campus Learning

C

C#

java