Question: What is the output of the following code? #include using namespace std; void foo ( int * &c , int * d ) { *
What is the output of the following code?
#include
using namespace std;
void foo int &c int d
c;
int p d;
p ;
d c;
d c c;
c; :
c ;
int main
int a;
int p &a;
int q new int;
q a;
cout p q
;
foo pq;
cout p q
;
for int i; i ; i cout ai;
Group of answer choices
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
