LPD PPT ON OPRATERS.pdf LPD PPT ON OPRATERS.pdf

sanyavaghasiya 8 views 11 slides Sep 09, 2025
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

Ldp
Ldp full form logic development
Definitions of operaters
Types of operators
Arithmetic operators
Relational operators
Logical operators
Bitwise operators
Assignment operators
TYPES OF OPERATERS :
UNNARY
OPERTORS
COMMA
OPERTORS
TERRORNY
OPERTORS
SIZE OF OPERTORS
POINTER operators
➢ A...


Slide Content

BCA SEM -1 DIV –H
SUBJECT-LOGIC DEVELOPMENT PROGRAM
TOPIC:OPERATERS IN C LANGUAGE
PRESNTED BY:
PRITI LACHANNI
MUSKAN SINGH
ROSHNI CHAVDA
UNDER THE
GUDIANCE OF,
ATIK SIR

DEFINATIONS OF OPERATERS , OPERANDRS
OPERATERS : AN OPERATER IS A SYMBOL THAT TELLS THE COMPLIER TO
PERFORM SPECIFIC MATHEMATICAL OR LOGICAL FUNCTION .
C LANGUAGE IS RICH IN BUILT-IN OPERATERS.
OPRENDERS: OPRENDERS ARE ELEMENTS OF A PROGRAMMING
LANGUAGE
THAT CAN BE MANIPULATED BY OPERATORS TO PRODUCE SPECIFIC OUTPUTS.

TYPES OF OPERATERS :
ARTHMATIC
OPERATORS
RELATIONAL
OPERATORS
LOGICAL
OPERATORS
BITWISE
OPERATORS
ASSIGNMENT
OPERATORS

TYPES OF OPERATERS :
UNNARY
OPERTORS
COMMA
OPERTORS
TERRORNY
OPERTORS
SIZE OF OPERTORS
POINTER
OPERTORS

➢ARITHMETIC OPERATORS : The Arithmetic operators in c are
symbols that perform in mathematical operations on numerical values, such
as constants & variable
operators are include : +,-,*,/,%,++,- -.
RELATIONAL OPERATORS: relational operators in c are used to compare
to values & determine their relationship.
operat
ors
Description
== Checks if two values are identical
!= Checks if two values are different
> Checks if the value on the left is greater
than the value on the right
< Checks if the value on the right is greater
than the value on the left
>= Checks if the value on the left is greater
than or equal to the value on the right.
<= Checks if the value on the left is greater
than or equal to the value on the right.

Pointer operators : De-
reference operator(access
the value pointed by a
pointer)
&: Address of operators
Returns the address of
variable.
Operators Description
= Simple assignment operator
+= ADD AND assignment operator
-= SUB AND assignment operator
*= Multiply AND assignment operator
/= Divide AND assignment operator
%= Modulus AND assignment operator
<<= Left shift AND assignment operator
>>= Right shift AND assignment operator
&= Bitwise AND assignment operator
^= Bitwise exclusive OR AND assignment
operator
Assignment operators
:
Assignment operators
are used to assign the
value to variable.
|= Bitwise inclusive OR AND assignment
operator

Comma operator:
“,” use to separate
multiple expression and
returns a value.

Logical operator :
Logical operator in c are
used to combine multiple
conditions .
Logical operator returns
either 0 or 1 ,
It depends on whether the
expression results is true or
false.
operatorsDescription
&& && both the condition must
be true
OR(||) At least one condition must
be true
NOT(!) Negates the condition

BITWISE OPERATORS : bitwise operators in c are used to
manipulate individual bits or groups of bits within
integers.
Operators Description
& Binary AND operatoer copies a bit to the result if it exists in both
operands.
| Binary OR operators copies a bit if it exists in either operator
^ Binary XOR operators copies the bit if it is set in one operando
but not both.
~ Binary one’s complement operator is unary and has the effect of
flipping bits
<< Binary left shift operator . The left operand value is moved left by
the number of bits specified by the right operands
>> Binary right shift operator . The left operands value is moved right
by the number of bits specified by the right operands.

MISC OPERATORS : SIZE&TERNARY
OPERATOR DESCRIPTION
SIZEOF() RETURNS THE SIZE OF A VARIABLE
& RETURNS THE ADDRESS OF A VARIABLE
* POINTER TO A VARIBLE
?: CONDITIONAL EXPRESSION:IF CONDITION IS TRUE ? THEN VALUE X :
OTHERWISE VALUE Y

UNARY OPERATOR: UNARY OPERATORS IN C ARE
OPERATORS THAT PERFORM OPERATIONS ON A SINGLE VARIABLE
OR OPERAND TO PRODUCE A NEW VALUE.
OPERATORS DESCRIPITON
(-) UNARY MINUS RETURNS THE NEGATIVE OF THE OPERAND.
(+) UNARY ADDITION IS A SIMPLE UNARY OPERATOR THAT RETURS
THE VALUE OF ITS OPERAND WITHOUT ANY CHANGES.
(!) RETURNS 1 IF THE OPERAND IS ZERO, AND 0 IF THE OPERAND IS
NON-ZERO.
(++) INCREMENTS THE OPERAND BY 1
(--) DECREMENTS THE OPERAND BY 1

THANKYOU SO MUCH EVERYONE FOR YOUR
ATTENTION:
REGARDS;
PRITI LACHHANI
MUSKAN SINGH
ROSHNI CHAVDA