SlideShare a Scribd company logo
1 of 65
Sushila Devi Bansal College of Technology   Indore ,[object Object],[object Object],[object Object],[object Object]
Note: ,[object Object],[object Object],[object Object],[object Object],[object Object]
Pointer   pointers are variable that contain addresses, addresses are always whole numbers, pointers would always contain whole numbers
Pointer ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],5
Scanf(“%d%d”,&a,&b); ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],5 65524
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Pointer to pointer ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],5 65524 65522
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Passing array elements to function ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Call by reference ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Find Output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Don’t try on pointer ,[object Object],[object Object],[object Object]
Accessing array with pointer ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Passing entire array to a function ,[object Object],[object Object],[object Object],[object Object]
Real thing  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
2D array and pointer ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Memory map ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],Find output
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
output ,[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object]
Find output ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
output ,[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

Function recap
Function recapFunction recap
Function recap
alish sha
 
Boost.Interfaces
Boost.InterfacesBoost.Interfaces
Boost.Interfaces
melpon
 

What's hot (20)

Programming Fundamentals Arrays and Strings
Programming Fundamentals   Arrays and Strings Programming Fundamentals   Arrays and Strings
Programming Fundamentals Arrays and Strings
 
An imperative study of c
An imperative study of cAn imperative study of c
An imperative study of c
 
Pointers+(2)
Pointers+(2)Pointers+(2)
Pointers+(2)
 
C++ Programming - 1st Study
C++ Programming - 1st StudyC++ Programming - 1st Study
C++ Programming - 1st Study
 
Chapter 7 functions (c)
Chapter 7 functions (c)Chapter 7 functions (c)
Chapter 7 functions (c)
 
Unit 5 Foc
Unit 5 FocUnit 5 Foc
Unit 5 Foc
 
2014 computer science_question_paper
2014 computer science_question_paper2014 computer science_question_paper
2014 computer science_question_paper
 
CSE240 Pointers
CSE240 PointersCSE240 Pointers
CSE240 Pointers
 
C aptitude
C aptitudeC aptitude
C aptitude
 
Fp201 unit5 1
Fp201 unit5 1Fp201 unit5 1
Fp201 unit5 1
 
C programs
C programsC programs
C programs
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
 
Unit 3
Unit 3 Unit 3
Unit 3
 
C programming pointer
C  programming pointerC  programming pointer
C programming pointer
 
C program
C programC program
C program
 
Function recap
Function recapFunction recap
Function recap
 
Boost.Interfaces
Boost.InterfacesBoost.Interfaces
Boost.Interfaces
 
Implementing stack
Implementing stackImplementing stack
Implementing stack
 
Programming with GUTs
Programming with GUTsProgramming with GUTs
Programming with GUTs
 
Notes for C++ Programming / Object Oriented C++ Programming for MCA, BCA and ...
Notes for C++ Programming / Object Oriented C++ Programming for MCA, BCA and ...Notes for C++ Programming / Object Oriented C++ Programming for MCA, BCA and ...
Notes for C++ Programming / Object Oriented C++ Programming for MCA, BCA and ...
 

Viewers also liked

Pruebas bioquimicas para la identificacion de bacterias de importancia clinica
Pruebas bioquimicas para la identificacion de bacterias de importancia clinicaPruebas bioquimicas para la identificacion de bacterias de importancia clinica
Pruebas bioquimicas para la identificacion de bacterias de importancia clinica
Talia Sartori
 
θερμομόνωση2010 11
θερμομόνωση2010 11θερμομόνωση2010 11
θερμομόνωση2010 11
Stefan Pallantzas
 
Programacion de modulos 2015 cetpro2 doris
Programacion de modulos 2015 cetpro2 dorisProgramacion de modulos 2015 cetpro2 doris
Programacion de modulos 2015 cetpro2 doris
Doris Jimenez Monago
 
Chapter 13 materialism
Chapter 13 materialismChapter 13 materialism
Chapter 13 materialism
Karen Owens
 

Viewers also liked (20)

communication Guide
communication Guidecommunication Guide
communication Guide
 
Recomenzar
RecomenzarRecomenzar
Recomenzar
 
rampant caries
rampant cariesrampant caries
rampant caries
 
Virus
VirusVirus
Virus
 
ENFERMEDADES DE TRANSMISIÓN SEXUAL. DRA. LAURA PEREDA CORVERA
ENFERMEDADES DE TRANSMISIÓN SEXUAL. DRA. LAURA PEREDA CORVERAENFERMEDADES DE TRANSMISIÓN SEXUAL. DRA. LAURA PEREDA CORVERA
ENFERMEDADES DE TRANSMISIÓN SEXUAL. DRA. LAURA PEREDA CORVERA
 
Bambu
BambuBambu
Bambu
 
Ud3. El arte griego. Introducción y Arquitectura
Ud3.  El arte griego. Introducción y ArquitecturaUd3.  El arte griego. Introducción y Arquitectura
Ud3. El arte griego. Introducción y Arquitectura
 
Pruebas bioquimicas para la identificacion de bacterias de importancia clinica
Pruebas bioquimicas para la identificacion de bacterias de importancia clinicaPruebas bioquimicas para la identificacion de bacterias de importancia clinica
Pruebas bioquimicas para la identificacion de bacterias de importancia clinica
 
Características de los virus
Características de los virusCaracterísticas de los virus
Características de los virus
 
La Corrupcion
La CorrupcionLa Corrupcion
La Corrupcion
 
Tipos de corrupcion
Tipos de corrupcionTipos de corrupcion
Tipos de corrupcion
 
θερμομόνωση2010 11
θερμομόνωση2010 11θερμομόνωση2010 11
θερμομόνωση2010 11
 
Physical Unit Operations
Physical Unit OperationsPhysical Unit Operations
Physical Unit Operations
 
Programacion de modulos 2015 cetpro2 doris
Programacion de modulos 2015 cetpro2 dorisProgramacion de modulos 2015 cetpro2 doris
Programacion de modulos 2015 cetpro2 doris
 
El partenón
El partenónEl partenón
El partenón
 
Chapter 13 materialism
Chapter 13 materialismChapter 13 materialism
Chapter 13 materialism
 
El Arte Griego La Arquitectura
El Arte Griego La ArquitecturaEl Arte Griego La Arquitectura
El Arte Griego La Arquitectura
 
Enzimas
EnzimasEnzimas
Enzimas
 
Modelo de Informe de una empresa
Modelo de Informe de una empresaModelo de Informe de una empresa
Modelo de Informe de una empresa
 
Antropologia Visual
Antropologia VisualAntropologia Visual
Antropologia Visual
 

Similar to pointers 1

booksoncprogramminglanguage-anintroductiontobeginnersbyarunumrao4-21101016591...
booksoncprogramminglanguage-anintroductiontobeginnersbyarunumrao4-21101016591...booksoncprogramminglanguage-anintroductiontobeginnersbyarunumrao4-21101016591...
booksoncprogramminglanguage-anintroductiontobeginnersbyarunumrao4-21101016591...
GkhanGirgin3
 
Bti1022 lab sheet 8
Bti1022 lab sheet 8Bti1022 lab sheet 8
Bti1022 lab sheet 8
alish sha
 
Bti1022 lab sheet 8
Bti1022 lab sheet 8Bti1022 lab sheet 8
Bti1022 lab sheet 8
alish sha
 
C++: Constructor, Copy Constructor and Assignment operator
C++: Constructor, Copy Constructor and Assignment operatorC++: Constructor, Copy Constructor and Assignment operator
C++: Constructor, Copy Constructor and Assignment operator
Jussi Pohjolainen
 
Qust & ans inc
Qust & ans incQust & ans inc
Qust & ans inc
nayakq
 
Function recap
Function recapFunction recap
Function recap
alish sha
 
Network lap pgms 7th semester
Network lap pgms 7th semesterNetwork lap pgms 7th semester
Network lap pgms 7th semester
DOSONKA Group
 

Similar to pointers 1 (20)

c programming
c programmingc programming
c programming
 
booksoncprogramminglanguage-anintroductiontobeginnersbyarunumrao4-21101016591...
booksoncprogramminglanguage-anintroductiontobeginnersbyarunumrao4-21101016591...booksoncprogramminglanguage-anintroductiontobeginnersbyarunumrao4-21101016591...
booksoncprogramminglanguage-anintroductiontobeginnersbyarunumrao4-21101016591...
 
Vcs16
Vcs16Vcs16
Vcs16
 
C programming
C programmingC programming
C programming
 
UNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptxUNIT 2 LOOP CONTROL.pptx
UNIT 2 LOOP CONTROL.pptx
 
Paradigmas de Linguagens de Programacao - Aula #4
Paradigmas de Linguagens de Programacao - Aula #4Paradigmas de Linguagens de Programacao - Aula #4
Paradigmas de Linguagens de Programacao - Aula #4
 
Bti1022 lab sheet 8
Bti1022 lab sheet 8Bti1022 lab sheet 8
Bti1022 lab sheet 8
 
Bti1022 lab sheet 8
Bti1022 lab sheet 8Bti1022 lab sheet 8
Bti1022 lab sheet 8
 
Array
ArrayArray
Array
 
sodapdf-converted into ppt presentation(1).pdf
sodapdf-converted into ppt presentation(1).pdfsodapdf-converted into ppt presentation(1).pdf
sodapdf-converted into ppt presentation(1).pdf
 
9.C Programming
9.C Programming9.C Programming
9.C Programming
 
C++: Constructor, Copy Constructor and Assignment operator
C++: Constructor, Copy Constructor and Assignment operatorC++: Constructor, Copy Constructor and Assignment operator
C++: Constructor, Copy Constructor and Assignment operator
 
Slide set 6 Strings and pointers.pdf
Slide set 6 Strings and pointers.pdfSlide set 6 Strings and pointers.pdf
Slide set 6 Strings and pointers.pdf
 
Qust & ans inc
Qust & ans incQust & ans inc
Qust & ans inc
 
C arrays
C arraysC arrays
C arrays
 
C language
C languageC language
C language
 
Function recap
Function recapFunction recap
Function recap
 
L25-L26-Parameter passing techniques.pptx
L25-L26-Parameter passing techniques.pptxL25-L26-Parameter passing techniques.pptx
L25-L26-Parameter passing techniques.pptx
 
Network lap pgms 7th semester
Network lap pgms 7th semesterNetwork lap pgms 7th semester
Network lap pgms 7th semester
 
3. chapter ii
3. chapter ii3. chapter ii
3. chapter ii
 

More from gaurav koriya

INDIA N heritage -THE PUNJAB
INDIA N heritage -THE PUNJABINDIA N heritage -THE PUNJAB
INDIA N heritage -THE PUNJAB
gaurav koriya
 
Katrin Aand Shruti Pps
Katrin Aand Shruti PpsKatrin Aand Shruti Pps
Katrin Aand Shruti Pps
gaurav koriya
 

More from gaurav koriya (8)

Intrusion detection system
Intrusion detection system Intrusion detection system
Intrusion detection system
 
Hacking techniques
Hacking techniquesHacking techniques
Hacking techniques
 
ALL ABOUT SQL AND RDBMS
ALL ABOUT SQL AND RDBMSALL ABOUT SQL AND RDBMS
ALL ABOUT SQL AND RDBMS
 
INDIA N heritage -THE PUNJAB
INDIA N heritage -THE PUNJABINDIA N heritage -THE PUNJAB
INDIA N heritage -THE PUNJAB
 
ip address
ip addressip address
ip address
 
About ip address
About ip addressAbout ip address
About ip address
 
Katrin Aand Shruti Pps
Katrin Aand Shruti PpsKatrin Aand Shruti Pps
Katrin Aand Shruti Pps
 
Mobile Computing
Mobile ComputingMobile Computing
Mobile Computing
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 

pointers 1

  • 1.
  • 2.
  • 3. Pointer pointers are variable that contain addresses, addresses are always whole numbers, pointers would always contain whole numbers
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.