OPERATORS IN C
LANGUAGE
BY:-GROUP_4
”
“ What are Operators in C Language?
It is one of the feature in c language that uses symbols to carry out various operations in computer
Such as:-
1.Mathematical
2.Relational
3.Bitwise
4.Conditional
5.Logical Manipulations
In C Here are the types of operator
1.Arithmetic Operators
2.Relational Operators
3.Logical Operator
4.Bitwise Operator
5.Stray operators
Logical operators in C language
What are logical operators in C language?
:-Logical operators are the operators which process the logic of a particular sentence
These are the types of Logical operators:-
1.Logical NOT (!)
2.Logical OR (||)
3.Logical AND (&&)
Logic NOT (!)
This logic is used to reverse the result of a particular
statement
Eg.. (1) The key is open Statement
The key is closed Statement NOT
(2)The binary codes are:- 11010001001
NOT Statement:-00101110110This
Logic OR (||)
This operator is used to check 2 statements in a Program
If both the statements have value false the output is false,if any one
statement have true value output is considered as true
Eg… (1)no. 49 is divisible by 7 OR 5
Here one condition is satisfied so the statement is true
(2)no.5 is divisible by 3 OR 4
Here both the conditions are false so the statement is false
Logic AND(&&)
Here if both the the statements are true then the program is
considered as true
If any one is false then the statement is considered as false
Eg…. (1) If I have chair and a table Then only I will Study
Here if the user has table and chair then they will
Study
If any one of the items is missing then they won’t
study

Operators in c language.pptx

  • 1.
  • 2.
    ” “ What areOperators in C Language? It is one of the feature in c language that uses symbols to carry out various operations in computer Such as:- 1.Mathematical 2.Relational 3.Bitwise 4.Conditional 5.Logical Manipulations
  • 3.
    In C Hereare the types of operator 1.Arithmetic Operators 2.Relational Operators 3.Logical Operator 4.Bitwise Operator 5.Stray operators
  • 4.
    Logical operators inC language What are logical operators in C language? :-Logical operators are the operators which process the logic of a particular sentence These are the types of Logical operators:- 1.Logical NOT (!) 2.Logical OR (||) 3.Logical AND (&&)
  • 5.
    Logic NOT (!) Thislogic is used to reverse the result of a particular statement Eg.. (1) The key is open Statement The key is closed Statement NOT (2)The binary codes are:- 11010001001 NOT Statement:-00101110110This
  • 6.
    Logic OR (||) Thisoperator is used to check 2 statements in a Program If both the statements have value false the output is false,if any one statement have true value output is considered as true Eg… (1)no. 49 is divisible by 7 OR 5 Here one condition is satisfied so the statement is true (2)no.5 is divisible by 3 OR 4 Here both the conditions are false so the statement is false
  • 7.
    Logic AND(&&) Here ifboth the the statements are true then the program is considered as true If any one is false then the statement is considered as false Eg…. (1) If I have chair and a table Then only I will Study Here if the user has table and chair then they will Study If any one of the items is missing then they won’t study