SlideShare a Scribd company logo
Notes on
C Operator
Instructor:
Arghodeep Paul
Firmware Engineer at BitBible Technologies Pvt. Ltd.
Content Author: Arghodeep Paul
License: OpenSource
Date: 15 July 2021
Operator
An Operator is a Special Symbol that which performs specific operations on it’s
operands.
Operand
Operands are the elements on which the operator works. These elements can be
Variable, Constant or a Function result.
Types
Unary: works with one operand.
Increment/Decrement Operator: ++,--
Binary: works with two operands.
Logical: !, ||, &&
Arithmetic: +, -, *, /, %
Bitwise: &, |, <<, >>, ~, ^
Relational: >, <, >=, <=, ==, !=
Assignment: =, *=, +=, -=, /=, %=, =
Ternary: works with three operands.
?:
Syntax
Expression?statement1:statement2

More Related Content

PDF
Doppl development iteration #5
PPT
Function overloading in c++
PPTX
Oop using JAVA
ODP
Operators
PDF
Operators in java
PPTX
Operators in c++
PDF
Lecture03(c expressions & operators)
Doppl development iteration #5
Function overloading in c++
Oop using JAVA
Operators
Operators in java
Operators in c++
Lecture03(c expressions & operators)

What's hot (20)

PPTX
Basic Programming of c++
ODP
Demystifying Eta Expansion
PDF
Coper in C
PPT
Python Built-in Functions and Use cases
DOC
Report on c
PPTX
Lecture 4: Functions
PPTX
Variables, Data Types, Operator & Expression in c in detail
PPT
Programming course slides c++ (Prof Mansoor Bhatti)
DOC
Week2 dq4
PPTX
Toy Interpreter
PPSX
Chapter 07
PDF
C++ revision tour
PPTX
Programming presentation
PPTX
5.functions
PPTX
What are operators?
PDF
Handout # 4 functions + scopes
PDF
Operators in c
DOC
Program sba
Basic Programming of c++
Demystifying Eta Expansion
Coper in C
Python Built-in Functions and Use cases
Report on c
Lecture 4: Functions
Variables, Data Types, Operator & Expression in c in detail
Programming course slides c++ (Prof Mansoor Bhatti)
Week2 dq4
Toy Interpreter
Chapter 07
C++ revision tour
Programming presentation
5.functions
What are operators?
Handout # 4 functions + scopes
Operators in c
Program sba
Ad

More from ArghodeepPaul (12)

PDF
Microprocessor questions converted
PDF
Windows script host
PDF
Windows batch scripting
PDF
Common problems solving using c
PDF
C taking user input
PDF
C storage classes
PDF
C datatypes
PDF
C variables and constants
PDF
C program structure
PDF
Computer programming tools and building process
PDF
Algorithm pseudocode flowchart program notes
PDF
notes on Programming fundamentals
Microprocessor questions converted
Windows script host
Windows batch scripting
Common problems solving using c
C taking user input
C storage classes
C datatypes
C variables and constants
C program structure
Computer programming tools and building process
Algorithm pseudocode flowchart program notes
notes on Programming fundamentals
Ad

Recently uploaded (20)

PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
bas. eng. economics group 4 presentation 1.pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Sustainable Sites - Green Building Construction
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
UNIT 4 Total Quality Management .pptx
PDF
PPT on Performance Review to get promotions
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
Automation-in-Manufacturing-Chapter-Introduction.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
III.4.1.2_The_Space_Environment.p pdffdf
Safety Seminar civil to be ensured for safe working.
UNIT-1 - COAL BASED THERMAL POWER PLANTS
bas. eng. economics group 4 presentation 1.pptx
573137875-Attendance-Management-System-original
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Sustainable Sites - Green Building Construction
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
UNIT 4 Total Quality Management .pptx
PPT on Performance Review to get promotions
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CH1 Production IntroductoryConcepts.pptx
Internet of Things (IOT) - A guide to understanding
Embodied AI: Ushering in the Next Era of Intelligent Systems

C operators

  • 1. Notes on C Operator Instructor: Arghodeep Paul Firmware Engineer at BitBible Technologies Pvt. Ltd. Content Author: Arghodeep Paul License: OpenSource Date: 15 July 2021
  • 2. Operator An Operator is a Special Symbol that which performs specific operations on it’s operands. Operand Operands are the elements on which the operator works. These elements can be Variable, Constant or a Function result. Types Unary: works with one operand. Increment/Decrement Operator: ++,-- Binary: works with two operands. Logical: !, ||, && Arithmetic: +, -, *, /, % Bitwise: &, |, <<, >>, ~, ^ Relational: >, <, >=, <=, ==, != Assignment: =, *=, +=, -=, /=, %=, = Ternary: works with three operands. ?: Syntax Expression?statement1:statement2