What is the output from the following program? #include using namespace std; void SomeFunction ( inté, int ) int main() int x-5; int y=3; Some Function (x, y); cout << "The values are: "«x« " "«y« en return 0; void SomeFunction( intá a, int b) {

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 18SA
icon
Related questions
Question
What is the output from the following program?
(2
#include <iostream>
using namespace std;
void Some Function ( int&, int)
int main ()
{
int x=5;
int y=3;
SomeFunction (x, y) :
cout << "The values are: "<<x<<" "<<y << ene
return 0;
void SomeFunction ( int& a, int b)
{
a = a * 4;
b - b + a;
}
Transcribed Image Text:What is the output from the following program? (2 #include <iostream> using namespace std; void Some Function ( int&, int) int main () { int x=5; int y=3; SomeFunction (x, y) : cout << "The values are: "<<x<<" "<<y << ene return 0; void SomeFunction ( int& a, int b) { a = a * 4; b - b + a; }
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr