Question: What is printed by the cout statement? int i = 1 ; int k = 2 ; int * p 1 ; int * p

What is printed by the cout statement?
int i =1;
int k =2;
int* p1;
int* p2;
p1= &i;
p2= &k;
p1= p2;
*p1=3;
*p2=4;
cout << k;
Group of answer choices
2
4
1
3

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!