SlideShare a Scribd company logo
1 of 10
ο‚ž Increment/Decrement of a Pointer
ο‚ž Addition of integer to a pointer
Subtraction of integer to a pointer
ο‚ž Subtraction of integer to a pointer
ο‚ž Subtracting two pointers of the same type
ο‚ž Increment/Decrement of a Pointer
ο‚ž Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
ο‚ž Subtraction of integer to a pointer
ο‚ž Subtracting two pointers of the same type
p++; / p--;
ο‚ž Increment/Decrement of a Pointer
ο‚ž Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
ο‚ž Subtraction of integer to a pointer
ο‚ž Subtracting two pointers of the same type
p++; / p--;
addr(p+i) = addr(p) + (sizeof(T)* i)
ο‚ž Increment/Decrement of a Pointer
ο‚ž Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
ο‚ž Subtraction of integer to a pointer
ο‚ž Subtracting two pointers of the same type
p = p+3;
ο‚ž Increment/Decrement of a Pointer
ο‚ž Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
ο‚ž Subtraction of integer to a pointer
ο‚ž Subtracting two pointers of the same type
p = p+3;
addr(p+i) = addr(p) + (sizeof(T)* i)
ο‚ž Increment/Decrement of a Pointer
ο‚ž Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
ο‚ž Subtraction of integer to a pointer
ο‚ž Subtracting two pointers of the same type
p = p-3;
ο‚ž Increment/Decrement of a Pointer
ο‚ž Addition of integer to a pointer
Subtraction of integer to a pointer
int *p;
ο‚ž Subtraction of integer to a pointer
ο‚ž Subtracting two pointers of the same type
p = p-3;
addr(p+i) = addr(p) - (sizeof(T)* i)
ο‚ž Increment/Decrement of a Pointer
ο‚ž Addition of integer to a pointer
Subtraction of integer to a pointer
int
*p1,*p2;
ο‚ž Subtraction of integer to a pointer
ο‚ž Subtracting two pointers of the same type
p1 – p2
7. Pointer Arithmetic

More Related Content

What's hot

computer notes - Data Structures - 26
computer notes - Data Structures - 26computer notes - Data Structures - 26
computer notes - Data Structures - 26ecomputernotes
Β 
Python programs - first semester computer lab manual (polytechnics)
Python programs - first semester computer lab manual (polytechnics)Python programs - first semester computer lab manual (polytechnics)
Python programs - first semester computer lab manual (polytechnics)SHAMJITH KM
Β 
A* Search Algorithm
A* Search AlgorithmA* Search Algorithm
A* Search Algorithmvikas dhakane
Β 
Python Lab manual program for BE First semester (all department
Python Lab manual program for BE First semester (all departmentPython Lab manual program for BE First semester (all department
Python Lab manual program for BE First semester (all departmentNazeer Wahab
Β 
ML: A Strongly Typed Functional Language
ML: A Strongly Typed Functional LanguageML: A Strongly Typed Functional Language
ML: A Strongly Typed Functional Languagelijx127
Β 
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA AKSHAY SACHAN
Β 
Code Optimization in MIPS
Code Optimization in MIPSCode Optimization in MIPS
Code Optimization in MIPSAhsan Javed
Β 
Chapter13 two-dimensional-array
Chapter13 two-dimensional-arrayChapter13 two-dimensional-array
Chapter13 two-dimensional-arrayDeepak Singh
Β 
Compiling fΒ΅n language
Compiling fΒ΅n languageCompiling fΒ΅n language
Compiling fΒ΅n languageDidier Plaindoux
Β 
C- Programming Assignment 3
C- Programming Assignment 3C- Programming Assignment 3
C- Programming Assignment 3Animesh Chaturvedi
Β 
Lab manualsahu[et&t]
Lab manualsahu[et&t]Lab manualsahu[et&t]
Lab manualsahu[et&t]Vivek Kumar Sinha
Β 
Mini project title prime number generator
Mini project title prime number generatorMini project title prime number generator
Mini project title prime number generatorMd. Asad Chowdhury Dipu
Β 
C- Programming Assignment 4 solution
C- Programming Assignment 4 solutionC- Programming Assignment 4 solution
C- Programming Assignment 4 solutionAnimesh Chaturvedi
Β 

What's hot (20)

Practical no 3
Practical no 3Practical no 3
Practical no 3
Β 
computer notes - Data Structures - 26
computer notes - Data Structures - 26computer notes - Data Structures - 26
computer notes - Data Structures - 26
Β 
Python programs - first semester computer lab manual (polytechnics)
Python programs - first semester computer lab manual (polytechnics)Python programs - first semester computer lab manual (polytechnics)
Python programs - first semester computer lab manual (polytechnics)
Β 
Blind os
Blind osBlind os
Blind os
Β 
A* Search Algorithm
A* Search AlgorithmA* Search Algorithm
A* Search Algorithm
Β 
Python Lab manual program for BE First semester (all department
Python Lab manual program for BE First semester (all departmentPython Lab manual program for BE First semester (all department
Python Lab manual program for BE First semester (all department
Β 
ML: A Strongly Typed Functional Language
ML: A Strongly Typed Functional LanguageML: A Strongly Typed Functional Language
ML: A Strongly Typed Functional Language
Β 
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
Β 
Mettl prg
Mettl prgMettl prg
Mettl prg
Β 
Pslb lab manual
Pslb lab manualPslb lab manual
Pslb lab manual
Β 
Lab 1
Lab 1Lab 1
Lab 1
Β 
Code Optimization in MIPS
Code Optimization in MIPSCode Optimization in MIPS
Code Optimization in MIPS
Β 
Chapter13 two-dimensional-array
Chapter13 two-dimensional-arrayChapter13 two-dimensional-array
Chapter13 two-dimensional-array
Β 
Compiling fΒ΅n language
Compiling fΒ΅n languageCompiling fΒ΅n language
Compiling fΒ΅n language
Β 
C- Programming Assignment 3
C- Programming Assignment 3C- Programming Assignment 3
C- Programming Assignment 3
Β 
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
Β 
Lab manualsahu[et&t]
Lab manualsahu[et&t]Lab manualsahu[et&t]
Lab manualsahu[et&t]
Β 
201506 CSE340 Lecture 15
201506 CSE340 Lecture 15201506 CSE340 Lecture 15
201506 CSE340 Lecture 15
Β 
Mini project title prime number generator
Mini project title prime number generatorMini project title prime number generator
Mini project title prime number generator
Β 
C- Programming Assignment 4 solution
C- Programming Assignment 4 solutionC- Programming Assignment 4 solution
C- Programming Assignment 4 solution
Β 

Similar to 7. Pointer Arithmetic

pointers of the programming in c most efficient.pptx
pointers of the programming in c most efficient.pptxpointers of the programming in c most efficient.pptx
pointers of the programming in c most efficient.pptxAmitRout25
Β 
Unit-I Pointer Data structure.pptx
Unit-I Pointer Data structure.pptxUnit-I Pointer Data structure.pptx
Unit-I Pointer Data structure.pptxajajkhan16
Β 
Pointer in C
Pointer in CPointer in C
Pointer in Cbipchulabmki
Β 
PPS-POINTERS.pptx
PPS-POINTERS.pptxPPS-POINTERS.pptx
PPS-POINTERS.pptxsajinis3
Β 
Pointer arithmetic in c
Pointer arithmetic in c Pointer arithmetic in c
Pointer arithmetic in c sangrampatil81
Β 
EASY UNDERSTANDING OF POINTERS IN C LANGUAGE.pdf
EASY UNDERSTANDING OF POINTERS IN C LANGUAGE.pdfEASY UNDERSTANDING OF POINTERS IN C LANGUAGE.pdf
EASY UNDERSTANDING OF POINTERS IN C LANGUAGE.pdfsudhakargeruganti
Β 
Pointer
PointerPointer
Pointersaeeb12
Β 
Pointers
PointersPointers
PointersLp Singh
Β 
Pointers in c++ by minal
Pointers in c++ by minalPointers in c++ by minal
Pointers in c++ by minalminal kumar soni
Β 
Pointers+(2)
Pointers+(2)Pointers+(2)
Pointers+(2)Rubal Bansal
Β 
Pointers operation day2
Pointers operation day2Pointers operation day2
Pointers operation day2Bhuvana Gowtham
Β 
Basics of pointer, pointer expressions, pointer to pointer and pointer in fun...
Basics of pointer, pointer expressions, pointer to pointer and pointer in fun...Basics of pointer, pointer expressions, pointer to pointer and pointer in fun...
Basics of pointer, pointer expressions, pointer to pointer and pointer in fun...Jayanshu Gundaniya
Β 
Pointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptxPointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptxRamakrishna Reddy Bijjam
Β 
Pointer introduction day1
Pointer introduction day1Pointer introduction day1
Pointer introduction day1Bhuvana Gowtham
Β 

Similar to 7. Pointer Arithmetic (20)

pointers of the programming in c most efficient.pptx
pointers of the programming in c most efficient.pptxpointers of the programming in c most efficient.pptx
pointers of the programming in c most efficient.pptx
Β 
Unit-I Pointer Data structure.pptx
Unit-I Pointer Data structure.pptxUnit-I Pointer Data structure.pptx
Unit-I Pointer Data structure.pptx
Β 
Pointer in C
Pointer in CPointer in C
Pointer in C
Β 
PPS-POINTERS.pptx
PPS-POINTERS.pptxPPS-POINTERS.pptx
PPS-POINTERS.pptx
Β 
Pointer arithmetic in c
Pointer arithmetic in c Pointer arithmetic in c
Pointer arithmetic in c
Β 
EASY UNDERSTANDING OF POINTERS IN C LANGUAGE.pdf
EASY UNDERSTANDING OF POINTERS IN C LANGUAGE.pdfEASY UNDERSTANDING OF POINTERS IN C LANGUAGE.pdf
EASY UNDERSTANDING OF POINTERS IN C LANGUAGE.pdf
Β 
SPC Unit 3
SPC Unit 3SPC Unit 3
SPC Unit 3
Β 
Pointer
PointerPointer
Pointer
Β 
Pointers in C
Pointers in CPointers in C
Pointers in C
Β 
Pointers
PointersPointers
Pointers
Β 
Pointers in c++ by minal
Pointers in c++ by minalPointers in c++ by minal
Pointers in c++ by minal
Β 
Advanced pointers
Advanced pointersAdvanced pointers
Advanced pointers
Β 
Pointers+(2)
Pointers+(2)Pointers+(2)
Pointers+(2)
Β 
Pointer.pptx
Pointer.pptxPointer.pptx
Pointer.pptx
Β 
Pointers operation day2
Pointers operation day2Pointers operation day2
Pointers operation day2
Β 
Pointers
PointersPointers
Pointers
Β 
Function Pointer
Function PointerFunction Pointer
Function Pointer
Β 
Basics of pointer, pointer expressions, pointer to pointer and pointer in fun...
Basics of pointer, pointer expressions, pointer to pointer and pointer in fun...Basics of pointer, pointer expressions, pointer to pointer and pointer in fun...
Basics of pointer, pointer expressions, pointer to pointer and pointer in fun...
Β 
Pointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptxPointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptx
Β 
Pointer introduction day1
Pointer introduction day1Pointer introduction day1
Pointer introduction day1
Β 

More from Gem WeBlog

Analysis of optimization algorithms
Analysis of optimization algorithmsAnalysis of optimization algorithms
Analysis of optimization algorithmsGem WeBlog
Β 
Particle swarm intelligence
Particle swarm intelligenceParticle swarm intelligence
Particle swarm intelligenceGem WeBlog
Β 
Nature inspired metaheuristics
Nature inspired metaheuristicsNature inspired metaheuristics
Nature inspired metaheuristicsGem WeBlog
Β 
Darwin's theory of evolution
Darwin's theory of evolutionDarwin's theory of evolution
Darwin's theory of evolutionGem WeBlog
Β 
no free-lunch theorem
no free-lunch theoremno free-lunch theorem
no free-lunch theoremGem WeBlog
Β 
Video and animation
Video and animationVideo and animation
Video and animationGem WeBlog
Β 
Mpeg video compression
Mpeg video compressionMpeg video compression
Mpeg video compressionGem WeBlog
Β 
Digital audio
Digital audioDigital audio
Digital audioGem WeBlog
Β 
Designing multimedia
Designing multimediaDesigning multimedia
Designing multimediaGem WeBlog
Β 
Testing and Rolling Out Enterprise Applications
Testing and Rolling Out Enterprise ApplicationsTesting and Rolling Out Enterprise Applications
Testing and Rolling Out Enterprise ApplicationsGem WeBlog
Β 
Constructing Enterprise Applications
Constructing Enterprise  ApplicationsConstructing Enterprise  Applications
Constructing Enterprise ApplicationsGem WeBlog
Β 
Architecting and Designing Enterprise Applications
Architecting and Designing Enterprise ApplicationsArchitecting and Designing Enterprise Applications
Architecting and Designing Enterprise ApplicationsGem WeBlog
Β 
Incepting Enterprise Applications
Incepting Enterprise ApplicationsIncepting Enterprise Applications
Incepting Enterprise ApplicationsGem WeBlog
Β 
Introduction to BEA
Introduction to BEAIntroduction to BEA
Introduction to BEAGem WeBlog
Β 
Pointers and Structures
Pointers and StructuresPointers and Structures
Pointers and StructuresGem WeBlog
Β 
Dynamic memory allocation
Dynamic memory allocationDynamic memory allocation
Dynamic memory allocationGem WeBlog
Β 
Function pointer
Function pointerFunction pointer
Function pointerGem WeBlog
Β 
10. NULL pointer
10. NULL pointer10. NULL pointer
10. NULL pointerGem WeBlog
Β 
13. Pointer and 2D array
13. Pointer  and  2D array13. Pointer  and  2D array
13. Pointer and 2D arrayGem WeBlog
Β 
12.string and pointer
12.string and pointer12.string and pointer
12.string and pointerGem WeBlog
Β 

More from Gem WeBlog (20)

Analysis of optimization algorithms
Analysis of optimization algorithmsAnalysis of optimization algorithms
Analysis of optimization algorithms
Β 
Particle swarm intelligence
Particle swarm intelligenceParticle swarm intelligence
Particle swarm intelligence
Β 
Nature inspired metaheuristics
Nature inspired metaheuristicsNature inspired metaheuristics
Nature inspired metaheuristics
Β 
Darwin's theory of evolution
Darwin's theory of evolutionDarwin's theory of evolution
Darwin's theory of evolution
Β 
no free-lunch theorem
no free-lunch theoremno free-lunch theorem
no free-lunch theorem
Β 
Video and animation
Video and animationVideo and animation
Video and animation
Β 
Mpeg video compression
Mpeg video compressionMpeg video compression
Mpeg video compression
Β 
Digital audio
Digital audioDigital audio
Digital audio
Β 
Designing multimedia
Designing multimediaDesigning multimedia
Designing multimedia
Β 
Testing and Rolling Out Enterprise Applications
Testing and Rolling Out Enterprise ApplicationsTesting and Rolling Out Enterprise Applications
Testing and Rolling Out Enterprise Applications
Β 
Constructing Enterprise Applications
Constructing Enterprise  ApplicationsConstructing Enterprise  Applications
Constructing Enterprise Applications
Β 
Architecting and Designing Enterprise Applications
Architecting and Designing Enterprise ApplicationsArchitecting and Designing Enterprise Applications
Architecting and Designing Enterprise Applications
Β 
Incepting Enterprise Applications
Incepting Enterprise ApplicationsIncepting Enterprise Applications
Incepting Enterprise Applications
Β 
Introduction to BEA
Introduction to BEAIntroduction to BEA
Introduction to BEA
Β 
Pointers and Structures
Pointers and StructuresPointers and Structures
Pointers and Structures
Β 
Dynamic memory allocation
Dynamic memory allocationDynamic memory allocation
Dynamic memory allocation
Β 
Function pointer
Function pointerFunction pointer
Function pointer
Β 
10. NULL pointer
10. NULL pointer10. NULL pointer
10. NULL pointer
Β 
13. Pointer and 2D array
13. Pointer  and  2D array13. Pointer  and  2D array
13. Pointer and 2D array
Β 
12.string and pointer
12.string and pointer12.string and pointer
12.string and pointer
Β 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
Β 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
Β 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
Β 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
Β 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
Β 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
Β 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
Β 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
Β 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
Β 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
Β 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
Β 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
Β 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
Β 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
Β 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
Β 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
Β 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Β 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
Β 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Β 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
Β 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Β 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
Β 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
Β 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
Β 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
Β 
Model Call Girl in Bikash Puri Delhi reach out to us at πŸ”9953056974πŸ”
Model Call Girl in Bikash Puri  Delhi reach out to us at πŸ”9953056974πŸ”Model Call Girl in Bikash Puri  Delhi reach out to us at πŸ”9953056974πŸ”
Model Call Girl in Bikash Puri Delhi reach out to us at πŸ”9953056974πŸ”
Β 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
Β 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
Β 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
Β 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
Β 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
Β 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
Β 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Β 
Model Call Girl in Tilak Nagar Delhi reach out to us at πŸ”9953056974πŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at πŸ”9953056974πŸ”Model Call Girl in Tilak Nagar Delhi reach out to us at πŸ”9953056974πŸ”
Model Call Girl in Tilak Nagar Delhi reach out to us at πŸ”9953056974πŸ”
Β 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Β 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
Β 

7. Pointer Arithmetic

  • 1.
  • 2. ο‚ž Increment/Decrement of a Pointer ο‚ž Addition of integer to a pointer Subtraction of integer to a pointer ο‚ž Subtraction of integer to a pointer ο‚ž Subtracting two pointers of the same type
  • 3. ο‚ž Increment/Decrement of a Pointer ο‚ž Addition of integer to a pointer Subtraction of integer to a pointer int *p; ο‚ž Subtraction of integer to a pointer ο‚ž Subtracting two pointers of the same type p++; / p--;
  • 4. ο‚ž Increment/Decrement of a Pointer ο‚ž Addition of integer to a pointer Subtraction of integer to a pointer int *p; ο‚ž Subtraction of integer to a pointer ο‚ž Subtracting two pointers of the same type p++; / p--; addr(p+i) = addr(p) + (sizeof(T)* i)
  • 5. ο‚ž Increment/Decrement of a Pointer ο‚ž Addition of integer to a pointer Subtraction of integer to a pointer int *p; ο‚ž Subtraction of integer to a pointer ο‚ž Subtracting two pointers of the same type p = p+3;
  • 6. ο‚ž Increment/Decrement of a Pointer ο‚ž Addition of integer to a pointer Subtraction of integer to a pointer int *p; ο‚ž Subtraction of integer to a pointer ο‚ž Subtracting two pointers of the same type p = p+3; addr(p+i) = addr(p) + (sizeof(T)* i)
  • 7. ο‚ž Increment/Decrement of a Pointer ο‚ž Addition of integer to a pointer Subtraction of integer to a pointer int *p; ο‚ž Subtraction of integer to a pointer ο‚ž Subtracting two pointers of the same type p = p-3;
  • 8. ο‚ž Increment/Decrement of a Pointer ο‚ž Addition of integer to a pointer Subtraction of integer to a pointer int *p; ο‚ž Subtraction of integer to a pointer ο‚ž Subtracting two pointers of the same type p = p-3; addr(p+i) = addr(p) - (sizeof(T)* i)
  • 9. ο‚ž Increment/Decrement of a Pointer ο‚ž Addition of integer to a pointer Subtraction of integer to a pointer int *p1,*p2; ο‚ž Subtraction of integer to a pointer ο‚ž Subtracting two pointers of the same type p1 – p2