Question: 1 #include 2 3 int main ( ) { 4 int integer 1 , * p 1 , * p 2 ; 5 6 integer

1 #include
2
3 int main(){
4 int integer1,*p1,*p2;
5
6 integer1=10;
7 p1= &integer1;
8 p2= &p1;
9
10 integer1++; // is this line of code the same as: (*p1)++;
11 printf("%d
", integer1);
12 printf("%p
", p1);
13 printf("%p
", p2);
14 return 0;
15}
Name Type Address
integer1 int 0x7fff8c1ff994
p1 int *0x7fff8c1ff988
p2 int **0x7fff8c1ff980
If the code on line 10 changed from the last question to what you see in this question,
will the output be the same as the last question?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!