
Concept explainers
The following
#include <iostream>
using namespace std;
void func1(int &, int &);
void func2(int &, int &, int &);
void func3(int, int, int);
int main()
{
int x = 0, y = 0, z = 0;
cout ≪ x ≪ " " ≪ y ≪ " " ≪ z ≪ endl;
func1(x, y);
cout ≪ x ≪ " " ≪ y ≪ " " ≪ z ≪ endl;
func2(x, y, z);
cout ≪ x ≪ " " ≪ y ≪ " " ≪ z ≪ endl;
func3(x, y, z);
cout ≪ x ≪ " " ≪ y ≪ " " ≪ z ≪ endl;
return 0;
}
void fund (int &a, int &b)
{
cout ≪ "Enter two numbers: ";
cin ≫ a ≫ b;
}
void func2(int &a, int &b, int &c)
{
b++;
c−−;
a = b + c;
}
void func3(int a, int b, int c)
{
a = b − c;
}

Want to see the full answer?
Check out a sample textbook solution
Chapter 6 Solutions
Starting Out with C++ from Control Structures to Objects (9th Edition)
Additional Engineering Textbook Solutions
Starting Out With Visual Basic (8th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
Concepts Of Programming Languages
Database Concepts (8th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT




