Day 6 : Operators and Arithmetic calculation in c language.

Previously Below all topics are covered on our blog you can check for detailed information about it.

 1. Syntax of c

2. Keywords

3. Datatypes

4. Identifiers

5. Variables

6. format specifier

Operators and Arithmetic calculation in c language.

In today's session, we are talking about operators in the c language.

7.  Operators and Arithmetic calculation


 In the C programming lang, various types of operators can be used to perform various operations on code & data. below are some commonly used operators in C language:

Please Read Othe important aspects of c :  Click here.

1. Arithmetic Operators:

Arithmetic operators are symbols used in mathematics and programming to perform various mathematical operations on numbers. Here are the commonly used arithmetic operators:

   - Addition (+)

   - Subtraction (-)

   - Multiplication (*)

   - Division (/)

   - Modulo (%)

2. Assignment Operators:

Assignment operators are used in programming to assign values to variables. They allow you to store a value in a variable or update its existing value. Here are the commonly used assignment operators:

   - Assignment (=)

   - Addition assignment (+=)

   - Subtraction assignment (-=)

   - Multiplication assignment (*=)

   - Division assignment (/=)

   - Modulo assignment (%=)

3. Relational Operators:

Relational operators, also known as comparison operators, are used to compare values or expressions in programming. These operators evaluate the relationship between two operands and return a Boolean value (true or false) based on the comparison. Here are the commonly used relational operators:

   - Equal to (==)

   - Not equal to (!=)

   - Greater than (>)

   - Less than (<)

   - Greater than or equal to (>=)

   - Less than or equal to (<=)

4. Logical Operators:

Logical operators are used to perform logical operations on boolean values (true or false) or expressions. They allow you to combine multiple conditions and determine the overall truth value of a complex expression. Here are the commonly used logical operators:

   - Logical AND (&&)

   - Logical OR (||)

   - Logical NOT (!)

5. Bitwise Operators:

Bitwise operators are used to perform operations on individual bits of binary numbers. These operators manipulate the binary representation of numbers at the bit level. Bitwise operators are commonly used in low-level programmings, such as working with hardware interfaces or performing optimizations. Here are the commonly used bitwise operators:

   - Bitwise AND (&)

   - Bitwise OR (|)

   - Bitwise XOR (^)

   - Bitwise NOT (~)

   - Left shift (<<)

   - Right shift (>>)

6. Increment and Decrement Operators:

   - Increment (++)

   - Decrement (--)

7. Conditional Operator (Ternary Operator):

   - Conditional expression? true_expression : false_expression

8. Sizeof Operator:

   - Returns a data type or variable's size (in bytes).

All these are the operators in the c lang for performing a specific task.

Read More: Day 2: Structure of c and Input, Output in c programming


The task for Next Saturday for all 


  1. What is Header File?
  2. C is a case-sensitive programming language? True Or False?
  3. What is a keyword in c programming Language?
  4. What is a data type?
  5. Example of output and input functions in c programming?
  6. What is a compiler?
  7. What is the source and object file?
  8. What is %d and %ld?
  9. What is the memory size of double and short data types?
  10. How to find a reminder?

Read Previous articles here:

Post a Comment

Previous Post Next Post