SlideShare ist ein Scribd-Unternehmen logo
1 von 43
Software Development  Training Program KaZIM HUSSAIn
Operators ,[object Object],[object Object],[object Object],[object Object]
Unary Operators ,[object Object],[object Object],[object Object],++ -- + ! - ~
Increment and Decrement Operator The ++ and – are increment and decrement operators. The increment operator increases its operand by one; the decrement operator decreases its operand by one. ++ --
Increment and Decrement Operator ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Increment and Decrement Operator ,[object Object],[object Object],[object Object],[object Object],[object Object]
Examples Initial value of a Expression Final value of b Final value of a 5 b  =  a++ 5 6 5 b  =  ++a 6 6 5 b  =  a-- 5 4 5 b  =  --a 4 4
Bitwise Inversion Operator ,[object Object],~
Bitwise Inversion Operator ,[object Object],[object Object],[object Object],[object Object],[object Object]
Bitwise Inversion Operator ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Bitwise Inversion Operator ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Boolean Complement Operator ,[object Object],[object Object],[object Object],!
Binary Operators ,[object Object],[object Object],[object Object],Arithmetic Operators * / % + -
Binary Operators Comparison Operator Bitwise Operators Short Circuit Logical Operators & ^ | < <= > >= == != is as && ||
Binary Operators Assignment Operators = *= /= % = += -= & = ^= |=
Arithmetic Operators ,[object Object],* / % + -
Comparison Operator ,[object Object],< <= > >= == != is as
Comparison Operator Operator Result == Equal to != Not equal to >  Greater than <  Less than >= Greater than or equal to <= Less than or equal to
Bitwise Operator ,[object Object],& ^ |
Bitwise Operator (&) ,[object Object],Op1 Op2 Op1  AND  Op2 0 0 0 0 1 0 1 0 0 1 1 1
Bitwise Operator (|) ,[object Object],Op1 Op2 Op1  OR  Op2 0 0 0 0 1 1 1 0 1 1 1 1
Bitwise Operator (^) ,[object Object],Op1 Op2 Op1  XOR  Op2 0 0 0 0 1 1 1 0 1 1 1 0
Bitwise Operator ,[object Object]
Bitwise Operator (&) ,[object Object],Op1 Op2 Op1  AND  Op2 false false false false true false true false false true true true
Bitwise Operator (|) ,[object Object],Op1 Op2 Op1  OR  Op2 false false false false true true true false true true true true
Bitwise Operator (^) ,[object Object],Op1 Op2 Op1  XOR  Op2 false false false false true true true false true true true false
Short Circuit Logical Operators ,[object Object],[object Object],&& ||
Short Circuit Logical Operators ,[object Object],[object Object]
Example ,[object Object],[object Object],[object Object]
Example ,[object Object],[object Object],[object Object]
Assignment Operators = *= /= % = += -= & = ^=
Example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Ternary Operators ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example ,[object Object],[object Object],[object Object],[object Object],[object Object]
Operator Precedence ,[object Object],[object Object]
Operator Precedence Category Operators Primary (x)  x.y  f(x)  a[x]  x++  x--  new  typeof  sizeof  checked  unchecked Unary =  -  !  ~  ++x  --x  (T)x Multiplicative *  /  % Additive +  - Shift <<  >> Relational <  >  <=  >=  is as Equality ==  != Logical And & Logical XOR ^ Logical OR | Conditional AND && Conditional OR || Conditional ?: Assignment =  *=  /=  %=  +=  -=  <<=  >>=  &=  ^=  |=
Examples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Examples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Examples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Escape Sequences ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Math class Methods Description Example Abs(x) Returns the absolute value of x Math.Abs(-45) is 45 Math.Abs(45) is 45 Round(x) Rounds a value to the nearest integer  Math.Round(4.9) is 5 Math.Round(4.2) is 4 Math.Round(4.5) is  4 Ceiling(x) Returns the smallest integer greater than or equal to the x Math.Ceiling(5.4) is 6 Math.Ceiling(5.9) is 6 Floor(x) Returns the largest integer less then or equal to x Math.Floor(5.4) is 5 Math.Floor(5.9) is 5 Max(x,y) Returns the larger of two number Math.Max(5,9) is 9 Math.Max(5,-9) is 5 Min(x,y) Returns the smaller of two number Math.Min(5,9) is 5 Math.Min(5,-9) is -9
Math class Methods Description Example Pow(x,y) Returns x raised to the power y Math.Pow(4,2) is 16 Sqrt(x) Returns the square root of x Math.Sqrt(9) is 3 Math.Sqrt(5) is 2.23606797749979 Truncate(x) Returns the integral part of x Math.Truncate(38.4) is 38 Math.Truncate(38.485487) is 38
Exercise ,[object Object],[object Object],[object Object]

Weitere Àhnliche Inhalte

Was ist angesagt?

Python Operators
Python OperatorsPython Operators
Python OperatorsAdheetha O. V
 
Python Training in Bangalore | Python Operators | Learnbay.in
Python Training in Bangalore | Python Operators | Learnbay.inPython Training in Bangalore | Python Operators | Learnbay.in
Python Training in Bangalore | Python Operators | Learnbay.inLearnbayin
 
Fundamentals of Programming Chapter 5
Fundamentals of Programming Chapter 5Fundamentals of Programming Chapter 5
Fundamentals of Programming Chapter 5Mohd Harris Ahmad Jaal
 
Operators and Expressions
Operators and ExpressionsOperators and Expressions
Operators and ExpressionsMunazza-Mah-Jabeen
 
Operators in python
Operators in pythonOperators in python
Operators in pythoneShikshak
 
Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++Neeru Mittal
 
Operators in c++
Operators in c++Operators in c++
Operators in c++ABHIJITPATRA23
 
Expressions in c++
 Expressions in c++ Expressions in c++
Expressions in c++zeeshan turi
 
Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++bajiajugal
 
Operation and expression in c++
Operation and expression in c++Operation and expression in c++
Operation and expression in c++Online
 
Operators and Expressions in C++
Operators and Expressions in C++Operators and Expressions in C++
Operators and Expressions in C++Praveen M Jigajinni
 
Chapter 5 - Operators in C++
Chapter 5 - Operators in C++Chapter 5 - Operators in C++
Chapter 5 - Operators in C++Deepak Singh
 
Expression and Operartor In C Programming
Expression and Operartor In C Programming Expression and Operartor In C Programming
Expression and Operartor In C Programming Kamal Acharya
 
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of PrecedenceMuhammad Hammad Waseem
 

Was ist angesagt? (19)

Python Operators
Python OperatorsPython Operators
Python Operators
 
Python Training in Bangalore | Python Operators | Learnbay.in
Python Training in Bangalore | Python Operators | Learnbay.inPython Training in Bangalore | Python Operators | Learnbay.in
Python Training in Bangalore | Python Operators | Learnbay.in
 
Fundamentals of Programming Chapter 5
Fundamentals of Programming Chapter 5Fundamentals of Programming Chapter 5
Fundamentals of Programming Chapter 5
 
Operators and Expressions
Operators and ExpressionsOperators and Expressions
Operators and Expressions
 
Python operators
Python operatorsPython operators
Python operators
 
Operators in python
Operators in pythonOperators in python
Operators in python
 
Operators and expressions in C++
Operators and expressions in C++Operators and expressions in C++
Operators and expressions in C++
 
Operators in c++
Operators in c++Operators in c++
Operators in c++
 
Expressions in c++
 Expressions in c++ Expressions in c++
Expressions in c++
 
Operator & Expression in c++
Operator & Expression in c++Operator & Expression in c++
Operator & Expression in c++
 
Operation and expression in c++
Operation and expression in c++Operation and expression in c++
Operation and expression in c++
 
Operators and Expressions in C++
Operators and Expressions in C++Operators and Expressions in C++
Operators and Expressions in C++
 
Chapter 5 - Operators in C++
Chapter 5 - Operators in C++Chapter 5 - Operators in C++
Chapter 5 - Operators in C++
 
C – operators and expressions
C – operators and expressionsC – operators and expressions
C – operators and expressions
 
Operators in C & C++ Language
Operators in C & C++ LanguageOperators in C & C++ Language
Operators in C & C++ Language
 
Operator.ppt
Operator.pptOperator.ppt
Operator.ppt
 
Expression and Operartor In C Programming
Expression and Operartor In C Programming Expression and Operartor In C Programming
Expression and Operartor In C Programming
 
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence
[ITP - Lecture 06] Operators, Arithmetic Expression and Order of Precedence
 
Operators
OperatorsOperators
Operators
 

Andere mochten auch

C Sharp Jn (1)
C Sharp Jn (1)C Sharp Jn (1)
C Sharp Jn (1)jahanullah
 
C Sharp Jn
C Sharp JnC Sharp Jn
C Sharp Jnjahanullah
 
C Sharp Jn (6)
C Sharp Jn (6)C Sharp Jn (6)
C Sharp Jn (6)jahanullah
 
C Sharp Jn (5)
C Sharp Jn (5)C Sharp Jn (5)
C Sharp Jn (5)jahanullah
 
C Sharp Jn (5)
C Sharp Jn (5)C Sharp Jn (5)
C Sharp Jn (5)jahanullah
 
C Sharp Jn (3)
C Sharp Jn (3)C Sharp Jn (3)
C Sharp Jn (3)jahanullah
 
The Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post FormatsThe Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post FormatsBarry Feldman
 

Andere mochten auch (8)

C Sharp Jn (1)
C Sharp Jn (1)C Sharp Jn (1)
C Sharp Jn (1)
 
C Sharp Jn
C Sharp JnC Sharp Jn
C Sharp Jn
 
C Sharp Jn (6)
C Sharp Jn (6)C Sharp Jn (6)
C Sharp Jn (6)
 
C Sharp Jn (5)
C Sharp Jn (5)C Sharp Jn (5)
C Sharp Jn (5)
 
C Sharp Jn (5)
C Sharp Jn (5)C Sharp Jn (5)
C Sharp Jn (5)
 
C Sharp Jn (3)
C Sharp Jn (3)C Sharp Jn (3)
C Sharp Jn (3)
 
DOCILITY (IMPRONTA) FULL
DOCILITY (IMPRONTA) FULLDOCILITY (IMPRONTA) FULL
DOCILITY (IMPRONTA) FULL
 
The Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post FormatsThe Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post Formats
 

Ähnlich wie C Sharp Jn (2)

C++ Expressions Notes
C++ Expressions NotesC++ Expressions Notes
C++ Expressions NotesProf Ansari
 
operators and expressions in c++
 operators and expressions in c++ operators and expressions in c++
operators and expressions in c++sanya6900
 
05 operators
05   operators05   operators
05 operatorsdhrubo kayal
 
Operators expressions-and-statements
Operators expressions-and-statementsOperators expressions-and-statements
Operators expressions-and-statementsCtOlaf
 
python operators.ppt
python operators.pptpython operators.ppt
python operators.pptErnieAcuna
 
Py-Slides-2 (1).ppt
Py-Slides-2 (1).pptPy-Slides-2 (1).ppt
Py-Slides-2 (1).pptKalaiVani395886
 
Py-Slides-2.ppt
Py-Slides-2.pptPy-Slides-2.ppt
Py-Slides-2.pptTejaValmiki
 
Project in TLE
Project in TLEProject in TLE
Project in TLEPGT_13
 
C language basics
C language basicsC language basics
C language basicsMilind Deshkar
 
This slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxThis slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxranaashutosh531pvt
 
Operators and expressions in c language
Operators and expressions in c languageOperators and expressions in c language
Operators and expressions in c languagetanmaymodi4
 
Operators inc c language
Operators inc c languageOperators inc c language
Operators inc c languageTanmay Modi
 
Report Group 4 Constants and Variables
Report Group 4 Constants and VariablesReport Group 4 Constants and Variables
Report Group 4 Constants and VariablesGenard Briane Ancero
 

Ähnlich wie C Sharp Jn (2) (20)

C++ Expressions Notes
C++ Expressions NotesC++ Expressions Notes
C++ Expressions Notes
 
Operators
OperatorsOperators
Operators
 
operators and expressions in c++
 operators and expressions in c++ operators and expressions in c++
operators and expressions in c++
 
6 operators-in-c
6 operators-in-c6 operators-in-c
6 operators-in-c
 
6 operators-in-c
6 operators-in-c6 operators-in-c
6 operators-in-c
 
05 operators
05   operators05   operators
05 operators
 
C++
C++ C++
C++
 
Operators expressions-and-statements
Operators expressions-and-statementsOperators expressions-and-statements
Operators expressions-and-statements
 
python operators.ppt
python operators.pptpython operators.ppt
python operators.ppt
 
Py-Slides-2 (1).ppt
Py-Slides-2 (1).pptPy-Slides-2 (1).ppt
Py-Slides-2 (1).ppt
 
Py-Slides-2.ppt
Py-Slides-2.pptPy-Slides-2.ppt
Py-Slides-2.ppt
 
Py-Slides-2.ppt
Py-Slides-2.pptPy-Slides-2.ppt
Py-Slides-2.ppt
 
Project in TLE
Project in TLEProject in TLE
Project in TLE
 
Operators
OperatorsOperators
Operators
 
C language basics
C language basicsC language basics
C language basics
 
This slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptxThis slide contains information about Operators in C.pptx
This slide contains information about Operators in C.pptx
 
Operators and expressions in c language
Operators and expressions in c languageOperators and expressions in c language
Operators and expressions in c language
 
Operators inc c language
Operators inc c languageOperators inc c language
Operators inc c language
 
Types of Operators in C
Types of Operators in CTypes of Operators in C
Types of Operators in C
 
Report Group 4 Constants and Variables
Report Group 4 Constants and VariablesReport Group 4 Constants and Variables
Report Group 4 Constants and Variables
 

KĂŒrzlich hochgeladen

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 

KĂŒrzlich hochgeladen (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

C Sharp Jn (2)

  • 1. Software Development Training Program KaZIM HUSSAIn
  • 2.
  • 3.
  • 4. Increment and Decrement Operator The ++ and – are increment and decrement operators. The increment operator increases its operand by one; the decrement operator decreases its operand by one. ++ --
  • 5.
  • 6.
  • 7. Examples Initial value of a Expression Final value of b Final value of a 5 b = a++ 5 6 5 b = ++a 6 6 5 b = a-- 5 4 5 b = --a 4 4
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. Binary Operators Comparison Operator Bitwise Operators Short Circuit Logical Operators & ^ | < <= > >= == != is as && ||
  • 15. Binary Operators Assignment Operators = *= /= % = += -= & = ^= |=
  • 16.
  • 17.
  • 18. Comparison Operator Operator Result == Equal to != Not equal to > Greater than < Less than >= Greater than or equal to <= Less than or equal to
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31. Assignment Operators = *= /= % = += -= & = ^=
  • 32.
  • 33.
  • 34.
  • 35.
  • 36. Operator Precedence Category Operators Primary (x) x.y f(x) a[x] x++ x-- new typeof sizeof checked unchecked Unary = - ! ~ ++x --x (T)x Multiplicative * / % Additive + - Shift << >> Relational < > <= >= is as Equality == != Logical And & Logical XOR ^ Logical OR | Conditional AND && Conditional OR || Conditional ?: Assignment = *= /= %= += -= <<= >>= &= ^= |=
  • 37.
  • 38.
  • 39.
  • 40.
  • 41. Math class Methods Description Example Abs(x) Returns the absolute value of x Math.Abs(-45) is 45 Math.Abs(45) is 45 Round(x) Rounds a value to the nearest integer Math.Round(4.9) is 5 Math.Round(4.2) is 4 Math.Round(4.5) is 4 Ceiling(x) Returns the smallest integer greater than or equal to the x Math.Ceiling(5.4) is 6 Math.Ceiling(5.9) is 6 Floor(x) Returns the largest integer less then or equal to x Math.Floor(5.4) is 5 Math.Floor(5.9) is 5 Max(x,y) Returns the larger of two number Math.Max(5,9) is 9 Math.Max(5,-9) is 5 Min(x,y) Returns the smaller of two number Math.Min(5,9) is 5 Math.Min(5,-9) is -9
  • 42. Math class Methods Description Example Pow(x,y) Returns x raised to the power y Math.Pow(4,2) is 16 Sqrt(x) Returns the square root of x Math.Sqrt(9) is 3 Math.Sqrt(5) is 2.23606797749979 Truncate(x) Returns the integral part of x Math.Truncate(38.4) is 38 Math.Truncate(38.485487) is 38
  • 43.