Special welcome gift. Get 50% off your first courses with code “AS50”. Find out more!

HomeInterviewC Q/AHow many types of operators are there in C Programming?

How many types of operators are there in C Programming?

An operator is a symbol used to operate the values of variables. There is a wide range of operators used in C programming, including –

Arithmetic Operators:

These are used to perform mathematical calculations such as addition, subtraction, multiplication, division, and modulus.

Relational Operators:

These are used to check the relation between two operands. If the relation is TRUE, it returns 1; If the relation is FALSE, It returns 0

Logical Operators:

These are used in decision-making operations. If the expression is TRUE, it returns 1; if the expression is FALSE, it returns 0.

Assignment Operators:

These are used to assign value to a variable. The most used assignment operator is ‘=’.

Increment and Decrement Operators:

These are used to change the value of an operand (constant or variable) by 1.

Bitwise Operators:

These are used to perform bit-level operations between two variables.

Special Operators:

There are some special operators in C used for:

            sizeof(): Returns the size of the memory location

            &: Returns the address of a memory location

            *: Pointer of a variable

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

Categories

ads sidebar 1

You May Also Like

Oracle has several modes for shutting down the database: In normal mode, the database is shut down by default. It...
Materialized views are items that contain condensed sets of data from base tables that have been summarized, clustered, or aggregated. They...
Every database in Oracle has a tablespace called SYSTEM, which is generated automatically when the database is created. It also...