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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Cryptography And Network Security
Authors: William Stallings
5th Edition
B00F0ZR6PC, 9780136097044
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App