Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
10 views

C operator

The document provides an overview of operators in the C programming language, defining operators as symbols that perform operations on operands. It categorizes C operators into six types: Arithmetic, Relational, Logical, Bitwise, Assignment, and Other Operators, and gives examples of arithmetic operations. The article serves as a resource for understanding the fundamental role of operators in C programming.

Uploaded by

neeraj.bhopal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

C operator

The document provides an overview of operators in the C programming language, defining operators as symbols that perform operations on operands. It categorizes C operators into six types: Arithmetic, Relational, Logical, Bitwise, Assignment, and Other Operators, and gives examples of arithmetic operations. The article serves as a resource for understanding the fundamental role of operators in C programming.

Uploaded by

neeraj.bhopal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1/26/25, 6:19 PM Operators in C - GeeksforGeeks

Operators in C
Last Updated : 11 Oct, 2024

In C language, operators are symbols that represent operations to be


performed on one or more operands. They are the basic components of
C the C programming.
C Basics C Data Types CInOperators
this article, weand
C Input will learnCabout
Output Control all
FlowtheCbuilt-in
Functions C Arrays
operators in C with examples.

What is a C Operator?
An operator in C can be defined as the symbol that helps us to perform
some specific mathematical, relational, bitwise, conditional, or logical
computations on values and variables. The values and variables used
with operators are called operands. So we can say that the operators
are the symbols that perform operations on operands.

For example,

c = a + b;

https://www.geeksforgeeks.org/operators-in-c/ 1/27
1/26/25, 6:19 PM Operators in C - GeeksforGeeks

Here, ‘+’ is the operator known as the addition operator, and ‘a’ and ‘b’
are operands. The addition operator tells the compiler to add both of
the operands ‘a’ and ‘b’. To dive deeper into how operators are used
with data structures, the C Programming Course Online with Data
Structures covers this topic thoroughly.

Types of Operators in C
C language provides a wide range of operators that can be classified
into 6 types based on their functionality:

1. Arithmetic Operators
2. Relational Operators
3. Logical Operators
4. Bitwise Operators
5. Assignment Operators
6. Other Operators

1. Arithmetic Operations in C
The arithmetic operators are used to perform arithmetic/mathematical
operations on operands. There are 9 arithmetic operators in C language:

S. No. Symbol Operator Description Syntax

1 Adds two
+ Plus numeric a+b
values.

2 Subtracts

– Minus right operand a–b


from left
operand.

3 * Multiply Multiply two a*b


numeric

https://www.geeksforgeeks.org/operators-in-c/ 2/27

You might also like