Question: #include using namespace std; void duplicate (int& a, int& b, int& c){ a=2; b=4; c=2;} void duplicate1 (int a, int b, int c){ a=5;

#include using namespace std; void duplicate (int& a, int& b, int& c){ a=2; b=4; c=2;} void duplicate1 (int a, int b, int c){ a=5; b=8; c=7;} void duplicate2 (int* a, int* b, int* c){ a = 3; *b= 2; *c = 3; } int main() { int x=1, y=3, z=7; int *d, *e, *f; d=&x; e=&y; f=&z; duplicate (x, y, z); // Please predict the output cout < < "x=" < < x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
