Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Cryptography And Network Security

Authors: William Stallings

5th Edition

B00F0ZR6PC, 9780136097044

More Books

Students also viewed these Programming questions

Question

Who should be involved?

Answered: 1 week ago