Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Example 1 : Pointers #include using namespace std; int main ( ) { int * pc , c; c = 5 ; cout < <
Example : Pointers
#include
using namespace std;
int main
int pc c;
c ;
cout "Address of c &c: &c endl;
cout "Value of c c: c endl endl;
pc &c; Pointer pc holds the memory address of variable c
cout "Address that pointer pc holds pc: pc endl;
cout "Content of the address pointer pc holds pc: pc endl endl;
c ; The content inside memory address &c is changed from to
cout "Address pointer pc holds pc: pc endl;
cout "Content of the address pointer pc holds pc: pc endl endl;
pc ;
cout "Address of c &c: &c endl;
cout "Value of c c: c endl endl;
return ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started