Computer Science, asked by jaiswaldevendra733, 2 months ago

How are the operators / and % different?

Answers

Answered by blueffire
1

Answer:

Explanation:

6 Types of Operators in C and C++ | Enhance Your Fundamental Skills

Operators are the basic concept of any programming language, used to build a foundation in programming for freshers. Operators can be defined as basic symbols that help us work on logical and mathematical operations. Operators in C and C++, are tools or symbols that are used to perform mathematical operations concerning arithmetic, logical, conditional and, bitwise operations.

There are many sub-operators presents in each type of Operators in C/C++. Let’s discuss one by one with their examples.

Types of Operators in C and C++

There are 6 types of Operators in C/C++

Types of Operators in C and C++

Let us discuss in detail the function of each type of operator.

1. Arithmetic Operators

It includes basic arithmetic operations like addition, subtraction, multiplication, division, modulus operations, increment, and decrement.

The Arithmetic Operators in C and C++ include:

+ (Addition) – This operator is used to add two operands.

– (Subtraction) – Subtract two operands.

* (Multiplication) – Multiply two operands.

/ (Division) – Divide two operands and gives the quotient as the answer.

% (Modulus operation) – Find the remains of two integers and gives the remainder after the division.

++ (Increment) – Used to increment an operand.

— (Decrement) – Used to decrement an operand.

Before we move ahead, you should Master in the Data Types in C/C+

Similar questions