SlideShare a Scribd company logo
1 of 2
int *pi;
//char c[] = "NIKHIL";
//char *pc = c;
//char **ppc = &pc;
char c[] = "NIKHIL";
char *p = "NIKHIL";
//c = c + 2;
//char *c1;
//char *c2;
//c1 = c;
//c2 = c+1;
//char *p_c[] = {c1,c2};
//c1 = c+4;
//c2 = c+5;
//int a[10] = {1,2,3,4,5,6,7,8,9,10};
//const char *c[] = {"NIKHIL","RIYA"};
//char *new_c[] = {c[0],c[1]};
//char *p_c = "NIKHIL";
printf("n c is pointing to address %x", *p);
//cout << "n Address of c is " << c;
cout << "n Address of p contains string " << *(c+1);
printf("n c is pointing to address %x", c);
//cout << "n Address of c is " << c;
//cout << "n Address of p is " << p;
printf("n p is pointing to address %x %x", p, &p);
p = p + 2;
//cout << "n Address which p is pointing to" << p;
printf("n p is pointing to address %x %x", p, &p);

More Related Content

What's hot

Data Structure - 2nd Study
Data Structure - 2nd StudyData Structure - 2nd Study
Data Structure - 2nd StudyChris Ohk
 
C++ Programming - 14th Study
C++ Programming - 14th StudyC++ Programming - 14th Study
C++ Programming - 14th StudyChris Ohk
 
Binary addition using class concept in c++
Binary addition using class concept in c++Binary addition using class concept in c++
Binary addition using class concept in c++Swarup Boro
 
Assignement c++
Assignement c++Assignement c++
Assignement c++Syed Umair
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramidnayakq
 
Freeing Tower Bridge
Freeing Tower BridgeFreeing Tower Bridge
Freeing Tower BridgeDave Cross
 
SATySFiのこれからの課題たち
SATySFiのこれからの課題たちSATySFiのこれからの課題たち
SATySFiのこれからの課題たちT. Suwa
 

What's hot (15)

Computer
ComputerComputer
Computer
 
Data Structure - 2nd Study
Data Structure - 2nd StudyData Structure - 2nd Study
Data Structure - 2nd Study
 
Chat code
Chat codeChat code
Chat code
 
C++ Programming - 14th Study
C++ Programming - 14th StudyC++ Programming - 14th Study
C++ Programming - 14th Study
 
Cpp
Cpp Cpp
Cpp
 
Binary addition using class concept in c++
Binary addition using class concept in c++Binary addition using class concept in c++
Binary addition using class concept in c++
 
Function basics
Function basicsFunction basics
Function basics
 
Assignement c++
Assignement c++Assignement c++
Assignement c++
 
MFC Polygon
MFC PolygonMFC Polygon
MFC Polygon
 
2 d rotation
2 d rotation2 d rotation
2 d rotation
 
Program for pyramid
Program for pyramidProgram for pyramid
Program for pyramid
 
Freeing Tower Bridge
Freeing Tower BridgeFreeing Tower Bridge
Freeing Tower Bridge
 
Implementing string
Implementing stringImplementing string
Implementing string
 
SATySFiのこれからの課題たち
SATySFiのこれからの課題たちSATySFiのこれからの課題たち
SATySFiのこれからの課題たち
 
1 (1)
1 (1)1 (1)
1 (1)
 

Viewers also liked

I AM I BIG BOOK - WRAP
I AM I BIG BOOK - WRAPI AM I BIG BOOK - WRAP
I AM I BIG BOOK - WRAPDavid Knight
 
Evaluation question 2
Evaluation question 2Evaluation question 2
Evaluation question 2Beth Ivison
 
Les droits de la femme en Afrique dans les pays en situation de conflits
Les droits de la femme en Afrique dans les pays en situation de conflitsLes droits de la femme en Afrique dans les pays en situation de conflits
Les droits de la femme en Afrique dans les pays en situation de conflitsRotary ICC Executive Council
 
Internet como herramienta educativa
Internet como herramienta educativaInternet como herramienta educativa
Internet como herramienta educativaDaniella Sorto
 
A+ Completion Certificate
A+ Completion CertificateA+ Completion Certificate
A+ Completion CertificateDavid Michalek
 
Mi credo pedagógico de John Dewey
Mi credo pedagógico de John DeweyMi credo pedagógico de John Dewey
Mi credo pedagógico de John Deweysoledad1000
 
Estándares W3C (Tarea)
Estándares W3C (Tarea)Estándares W3C (Tarea)
Estándares W3C (Tarea)Javier Chávez
 
Community education plan
Community education planCommunity education plan
Community education planAndriana Zarate
 
Fotoscafayate 100109224650-phpapp01
Fotoscafayate 100109224650-phpapp01Fotoscafayate 100109224650-phpapp01
Fotoscafayate 100109224650-phpapp01sarcienaga
 
Patrones de diseño (tarea)
Patrones de diseño (tarea)Patrones de diseño (tarea)
Patrones de diseño (tarea)Javier Chávez
 
PHP Conference Brazil 2015 - PHP + Sharepoint - Integrando Serviços Microsoft...
PHP Conference Brazil 2015 - PHP + Sharepoint - Integrando Serviços Microsoft...PHP Conference Brazil 2015 - PHP + Sharepoint - Integrando Serviços Microsoft...
PHP Conference Brazil 2015 - PHP + Sharepoint - Integrando Serviços Microsoft...Rodrigo Wanderley de Melo Cardoso
 
Aprendizaje ubicuo juan manuel
Aprendizaje ubicuo juan manuelAprendizaje ubicuo juan manuel
Aprendizaje ubicuo juan manuelJuanmanuelroa
 

Viewers also liked (20)

I AM I BIG BOOK - WRAP
I AM I BIG BOOK - WRAPI AM I BIG BOOK - WRAP
I AM I BIG BOOK - WRAP
 
Evaluation question 2
Evaluation question 2Evaluation question 2
Evaluation question 2
 
Maquina de ordeñe
Maquina de ordeñeMaquina de ordeñe
Maquina de ordeñe
 
A armadura de deus 2
A armadura de deus 2A armadura de deus 2
A armadura de deus 2
 
Les droits de la femme en Afrique dans les pays en situation de conflits
Les droits de la femme en Afrique dans les pays en situation de conflitsLes droits de la femme en Afrique dans les pays en situation de conflits
Les droits de la femme en Afrique dans les pays en situation de conflits
 
A armadura de deus 3
A armadura de deus 3A armadura de deus 3
A armadura de deus 3
 
Internet como herramienta educativa
Internet como herramienta educativaInternet como herramienta educativa
Internet como herramienta educativa
 
A+ Completion Certificate
A+ Completion CertificateA+ Completion Certificate
A+ Completion Certificate
 
Daft Punk - Get lucky
Daft Punk - Get luckyDaft Punk - Get lucky
Daft Punk - Get lucky
 
Los pueblos barbaros
Los pueblos barbarosLos pueblos barbaros
Los pueblos barbaros
 
A armadura de deus 4
A armadura de deus 4A armadura de deus 4
A armadura de deus 4
 
Mi credo pedagógico de John Dewey
Mi credo pedagógico de John DeweyMi credo pedagógico de John Dewey
Mi credo pedagógico de John Dewey
 
Estándares W3C (Tarea)
Estándares W3C (Tarea)Estándares W3C (Tarea)
Estándares W3C (Tarea)
 
Goa, india, mygoa
Goa, india, mygoaGoa, india, mygoa
Goa, india, mygoa
 
Community education plan
Community education planCommunity education plan
Community education plan
 
Fotoscafayate 100109224650-phpapp01
Fotoscafayate 100109224650-phpapp01Fotoscafayate 100109224650-phpapp01
Fotoscafayate 100109224650-phpapp01
 
A armadura de deus 1
A armadura de deus 1A armadura de deus 1
A armadura de deus 1
 
Patrones de diseño (tarea)
Patrones de diseño (tarea)Patrones de diseño (tarea)
Patrones de diseño (tarea)
 
PHP Conference Brazil 2015 - PHP + Sharepoint - Integrando Serviços Microsoft...
PHP Conference Brazil 2015 - PHP + Sharepoint - Integrando Serviços Microsoft...PHP Conference Brazil 2015 - PHP + Sharepoint - Integrando Serviços Microsoft...
PHP Conference Brazil 2015 - PHP + Sharepoint - Integrando Serviços Microsoft...
 
Aprendizaje ubicuo juan manuel
Aprendizaje ubicuo juan manuelAprendizaje ubicuo juan manuel
Aprendizaje ubicuo juan manuel
 

Recently uploaded

chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 

Recently uploaded (20)

chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 

C

  • 1. int *pi; //char c[] = "NIKHIL"; //char *pc = c; //char **ppc = &pc; char c[] = "NIKHIL"; char *p = "NIKHIL"; //c = c + 2; //char *c1; //char *c2; //c1 = c; //c2 = c+1; //char *p_c[] = {c1,c2}; //c1 = c+4; //c2 = c+5; //int a[10] = {1,2,3,4,5,6,7,8,9,10}; //const char *c[] = {"NIKHIL","RIYA"}; //char *new_c[] = {c[0],c[1]}; //char *p_c = "NIKHIL"; printf("n c is pointing to address %x", *p); //cout << "n Address of c is " << c; cout << "n Address of p contains string " << *(c+1); printf("n c is pointing to address %x", c); //cout << "n Address of c is " << c; //cout << "n Address of p is " << p; printf("n p is pointing to address %x %x", p, &p);
  • 2. p = p + 2; //cout << "n Address which p is pointing to" << p; printf("n p is pointing to address %x %x", p, &p);