CBSE BOARD XII, asked by tripathiutkarsh833, 2 months ago

Explain following operators with example- i) // ii) % iii)​

Answers

Answered by ItzRoyalQueen01
46

Operator Description Example

&& Called Logical AND operator. If both the operands are non-zero, then condition becomes true. (A && B) is false.

|| Called Logical OR Operator. If any of the two operands is non-zero, then condition becomes true. (A || B) is

Answered by ayushdas285
61

Answer:

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.

This is just the beginning, at the end of this article we will test your knowledge with an interactive quiz

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.

Stay updated with latest technology trends

Join DataFlair on Telegram!!

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

Similar questions