SlideShare a Scribd company logo
1 of 3
Question1:
What is the output of the following program?
#include <iostream>
using namespace std;
//prototype of function find
void find (int &a, int &b, int c);
int main ()
{
int one, two, three;
one = 1;
two = 2;
three = 3;
//call function find
find (one, two, three);
cout << "first call: " << one << ", " << two << ", " << three << endl;
//call function find
find (one, two, three);
cout << "second call: " << one << ", " << two << ", " << three << endl;
//call function find
find (one, two, three);
cout << "third call: " << one << ", " << two << ", " << three << endl;
system("pause");
return 0;
}
//User defined function with reference parameters
void find (int &a, int &b, int c)
{
int temp;
c = a + b + 1 ;
temp = c + 2;
a = a + c;
b = a + temp;
}
Solution
Answer 1:
output is
Answer 2:
in the definition of the function
void functionDefaultParam(double x = 2.4, int y = 3, string z = "H")
the string is not a defined datatype in c++, you can use array of character
Question1- What is the output of the following program- #include -iost.docx

More Related Content

Similar to Question1- What is the output of the following program- #include -iost.docx

Review Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdfReview Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdfmayorothenguyenhob69
 
how to reuse code
how to reuse codehow to reuse code
how to reuse codejleed1
 
ch9_additional.ppt
ch9_additional.pptch9_additional.ppt
ch9_additional.pptLokeshK66
 
Write the code above and the ones below in netbeans IDE 8.13. (Eli.pdf
Write the code above and the ones below in netbeans IDE 8.13. (Eli.pdfWrite the code above and the ones below in netbeans IDE 8.13. (Eli.pdf
Write the code above and the ones below in netbeans IDE 8.13. (Eli.pdfarihantmum
 
DeVry GSP 115 Week 3 Assignment latest
DeVry GSP 115 Week 3 Assignment latestDeVry GSP 115 Week 3 Assignment latest
DeVry GSP 115 Week 3 Assignment latestAtifkhilji
 
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
import java.util.Scanner;Henry Cutler ID 1234  7202.docximport java.util.Scanner;Henry Cutler ID 1234  7202.docx
import java.util.Scanner;Henry Cutler ID 1234 7202.docxwilcockiris
 
Python testing using mock and pytest
Python testing using mock and pytestPython testing using mock and pytest
Python testing using mock and pytestSuraj Deshmukh
 
c++ practical Digvajiya collage Rajnandgaon
c++ practical  Digvajiya collage Rajnandgaonc++ practical  Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaonyash production
 
Add an interactive command line to your C++ application
Add an interactive command line to your C++ applicationAdd an interactive command line to your C++ application
Add an interactive command line to your C++ applicationDaniele Pallastrelli
 
To write a program that implements the following C++ concepts 1. Dat.pdf
To write a program that implements the following C++ concepts 1. Dat.pdfTo write a program that implements the following C++ concepts 1. Dat.pdf
To write a program that implements the following C++ concepts 1. Dat.pdfSANDEEPARIHANT
 
Refactoring
RefactoringRefactoring
Refactoringnkaluva
 
Hi,Please fidn the Answer.Sorting,h is Header .pdf
Hi,Please fidn the Answer.Sorting,h is Header .pdfHi,Please fidn the Answer.Sorting,h is Header .pdf
Hi,Please fidn the Answer.Sorting,h is Header .pdfanandf0099
 

Similar to Question1- What is the output of the following program- #include -iost.docx (20)

Review Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdfReview Questions for Exam 10182016 1. public class .pdf
Review Questions for Exam 10182016 1. public class .pdf
 
how to reuse code
how to reuse codehow to reuse code
how to reuse code
 
ch9_additional.ppt
ch9_additional.pptch9_additional.ppt
ch9_additional.ppt
 
Write the code above and the ones below in netbeans IDE 8.13. (Eli.pdf
Write the code above and the ones below in netbeans IDE 8.13. (Eli.pdfWrite the code above and the ones below in netbeans IDE 8.13. (Eli.pdf
Write the code above and the ones below in netbeans IDE 8.13. (Eli.pdf
 
C++ Programm.pptx
C++ Programm.pptxC++ Programm.pptx
C++ Programm.pptx
 
DeVry GSP 115 Week 3 Assignment latest
DeVry GSP 115 Week 3 Assignment latestDeVry GSP 115 Week 3 Assignment latest
DeVry GSP 115 Week 3 Assignment latest
 
Lecture2.ppt
Lecture2.pptLecture2.ppt
Lecture2.ppt
 
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
import java.util.Scanner;Henry Cutler ID 1234  7202.docximport java.util.Scanner;Henry Cutler ID 1234  7202.docx
import java.util.Scanner;Henry Cutler ID 1234 7202.docx
 
Python testing using mock and pytest
Python testing using mock and pytestPython testing using mock and pytest
Python testing using mock and pytest
 
Operator overload rr
Operator overload  rrOperator overload  rr
Operator overload rr
 
C++ L07-Struct
C++ L07-StructC++ L07-Struct
C++ L07-Struct
 
c++ practical Digvajiya collage Rajnandgaon
c++ practical  Digvajiya collage Rajnandgaonc++ practical  Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaon
 
Add an interactive command line to your C++ application
Add an interactive command line to your C++ applicationAdd an interactive command line to your C++ application
Add an interactive command line to your C++ application
 
To write a program that implements the following C++ concepts 1. Dat.pdf
To write a program that implements the following C++ concepts 1. Dat.pdfTo write a program that implements the following C++ concepts 1. Dat.pdf
To write a program that implements the following C++ concepts 1. Dat.pdf
 
Php 5.6
Php 5.6Php 5.6
Php 5.6
 
Refactoring
RefactoringRefactoring
Refactoring
 
Quiz 9 cp_sol
Quiz 9 cp_solQuiz 9 cp_sol
Quiz 9 cp_sol
 
C++ programming function
C++ programming functionC++ programming function
C++ programming function
 
Managing Mocks
Managing MocksManaging Mocks
Managing Mocks
 
Hi,Please fidn the Answer.Sorting,h is Header .pdf
Hi,Please fidn the Answer.Sorting,h is Header .pdfHi,Please fidn the Answer.Sorting,h is Header .pdf
Hi,Please fidn the Answer.Sorting,h is Header .pdf
 

More from kevin792

Two types of closing journal entries are posted to retained earnings a.docx
Two types of closing journal entries are posted to retained earnings a.docxTwo types of closing journal entries are posted to retained earnings a.docx
Two types of closing journal entries are posted to retained earnings a.docxkevin792
 
Unit 5- Discussion - Technology Ethics The textbook- --Technology in A.docx
Unit 5- Discussion - Technology Ethics The textbook- --Technology in A.docxUnit 5- Discussion - Technology Ethics The textbook- --Technology in A.docx
Unit 5- Discussion - Technology Ethics The textbook- --Technology in A.docxkevin792
 
Two parallel plates are seperated by a distance 2H- The plates are mov.docx
Two parallel plates are seperated by a distance 2H- The plates are mov.docxTwo parallel plates are seperated by a distance 2H- The plates are mov.docx
Two parallel plates are seperated by a distance 2H- The plates are mov.docxkevin792
 
ult View History Bookmarks Window Help wps-prenhall-com Problem Solvin.docx
ult View History Bookmarks Window Help wps-prenhall-com Problem Solvin.docxult View History Bookmarks Window Help wps-prenhall-com Problem Solvin.docx
ult View History Bookmarks Window Help wps-prenhall-com Problem Solvin.docxkevin792
 
uestion 5 Krispy Kreme Donuts has a leverage of 2-5 What does this mea.docx
uestion 5 Krispy Kreme Donuts has a leverage of 2-5 What does this mea.docxuestion 5 Krispy Kreme Donuts has a leverage of 2-5 What does this mea.docx
uestion 5 Krispy Kreme Donuts has a leverage of 2-5 What does this mea.docxkevin792
 
Two sound sources- I and 2- are emitting spherical waves in air- The f.docx
Two sound sources- I and 2- are emitting spherical waves in air- The f.docxTwo sound sources- I and 2- are emitting spherical waves in air- The f.docx
Two sound sources- I and 2- are emitting spherical waves in air- The f.docxkevin792
 
Type of financial crisis Type of financial crisisSolutionThere are m.docx
Type of financial crisis   Type of financial crisisSolutionThere are m.docxType of financial crisis   Type of financial crisisSolutionThere are m.docx
Type of financial crisis Type of financial crisisSolutionThere are m.docxkevin792
 
Typing Answer is Mandatory! Explain the difference between cyclic hydr.docx
Typing Answer is Mandatory! Explain the difference between cyclic hydr.docxTyping Answer is Mandatory! Explain the difference between cyclic hydr.docx
Typing Answer is Mandatory! Explain the difference between cyclic hydr.docxkevin792
 
type of accountsSolutionSolution- 1- All of the three are types of Acc.docx
type of accountsSolutionSolution- 1- All of the three are types of Acc.docxtype of accountsSolutionSolution- 1- All of the three are types of Acc.docx
type of accountsSolutionSolution- 1- All of the three are types of Acc.docxkevin792
 
Two KPMG auditors- Kevin Hall and Rosemary Meyer- were accused of impr.docx
Two KPMG auditors- Kevin Hall and Rosemary Meyer- were accused of impr.docxTwo KPMG auditors- Kevin Hall and Rosemary Meyer- were accused of impr.docx
Two KPMG auditors- Kevin Hall and Rosemary Meyer- were accused of impr.docxkevin792
 
Question 28 (3 points) A student performs a titration procedure by add.docx
Question 28 (3 points) A student performs a titration procedure by add.docxQuestion 28 (3 points) A student performs a titration procedure by add.docx
Question 28 (3 points) A student performs a titration procedure by add.docxkevin792
 
Question 26 The stock of Kenny Corp- is owned equally by two brothers-.docx
Question 26 The stock of Kenny Corp- is owned equally by two brothers-.docxQuestion 26 The stock of Kenny Corp- is owned equally by two brothers-.docx
Question 26 The stock of Kenny Corp- is owned equally by two brothers-.docxkevin792
 
Question 2 Which of the following would be a cash flow from financing.docx
Question 2 Which of the following would be a cash flow from financing.docxQuestion 2 Which of the following would be a cash flow from financing.docx
Question 2 Which of the following would be a cash flow from financing.docxkevin792
 
Question 2 1- Which of the following is not a way managers generally b.docx
Question 2 1- Which of the following is not a way managers generally b.docxQuestion 2 1- Which of the following is not a way managers generally b.docx
Question 2 1- Which of the following is not a way managers generally b.docxkevin792
 
Question 19 of 20 5 0 Points A important part of weather science is --.docx
Question 19 of 20 5 0 Points A important part of weather science is --.docxQuestion 19 of 20 5 0 Points A important part of weather science is --.docx
Question 19 of 20 5 0 Points A important part of weather science is --.docxkevin792
 
Question on Exponential and Logarithmic functions Banking The compound.docx
Question on Exponential and Logarithmic functions Banking The compound.docxQuestion on Exponential and Logarithmic functions Banking The compound.docx
Question on Exponential and Logarithmic functions Banking The compound.docxkevin792
 
Question Five- State the advantages and a major limitation of each of.docx
Question Five- State the advantages and a major limitation of each of.docxQuestion Five- State the advantages and a major limitation of each of.docx
Question Five- State the advantages and a major limitation of each of.docxkevin792
 
Question 11- (1 points) (#50 from textbook) The January 2- 2011 eart (1).docx
Question 11- (1 points)  (#50 from textbook)  The January 2- 2011 eart (1).docxQuestion 11- (1 points)  (#50 from textbook)  The January 2- 2011 eart (1).docx
Question 11- (1 points) (#50 from textbook) The January 2- 2011 eart (1).docxkevin792
 
Question Part Points Submissions Used Solution.docx
Question Part     Points     Submissions Used   Solution.docxQuestion Part     Points     Submissions Used   Solution.docx
Question Part Points Submissions Used Solution.docxkevin792
 
Question 11- (1 points) (#50 from textbook) The January 2- 2011 eart.docx
Question 11- (1 points)  (#50 from textbook)  The January 2- 2011 eart.docxQuestion 11- (1 points)  (#50 from textbook)  The January 2- 2011 eart.docx
Question 11- (1 points) (#50 from textbook) The January 2- 2011 eart.docxkevin792
 

More from kevin792 (20)

Two types of closing journal entries are posted to retained earnings a.docx
Two types of closing journal entries are posted to retained earnings a.docxTwo types of closing journal entries are posted to retained earnings a.docx
Two types of closing journal entries are posted to retained earnings a.docx
 
Unit 5- Discussion - Technology Ethics The textbook- --Technology in A.docx
Unit 5- Discussion - Technology Ethics The textbook- --Technology in A.docxUnit 5- Discussion - Technology Ethics The textbook- --Technology in A.docx
Unit 5- Discussion - Technology Ethics The textbook- --Technology in A.docx
 
Two parallel plates are seperated by a distance 2H- The plates are mov.docx
Two parallel plates are seperated by a distance 2H- The plates are mov.docxTwo parallel plates are seperated by a distance 2H- The plates are mov.docx
Two parallel plates are seperated by a distance 2H- The plates are mov.docx
 
ult View History Bookmarks Window Help wps-prenhall-com Problem Solvin.docx
ult View History Bookmarks Window Help wps-prenhall-com Problem Solvin.docxult View History Bookmarks Window Help wps-prenhall-com Problem Solvin.docx
ult View History Bookmarks Window Help wps-prenhall-com Problem Solvin.docx
 
uestion 5 Krispy Kreme Donuts has a leverage of 2-5 What does this mea.docx
uestion 5 Krispy Kreme Donuts has a leverage of 2-5 What does this mea.docxuestion 5 Krispy Kreme Donuts has a leverage of 2-5 What does this mea.docx
uestion 5 Krispy Kreme Donuts has a leverage of 2-5 What does this mea.docx
 
Two sound sources- I and 2- are emitting spherical waves in air- The f.docx
Two sound sources- I and 2- are emitting spherical waves in air- The f.docxTwo sound sources- I and 2- are emitting spherical waves in air- The f.docx
Two sound sources- I and 2- are emitting spherical waves in air- The f.docx
 
Type of financial crisis Type of financial crisisSolutionThere are m.docx
Type of financial crisis   Type of financial crisisSolutionThere are m.docxType of financial crisis   Type of financial crisisSolutionThere are m.docx
Type of financial crisis Type of financial crisisSolutionThere are m.docx
 
Typing Answer is Mandatory! Explain the difference between cyclic hydr.docx
Typing Answer is Mandatory! Explain the difference between cyclic hydr.docxTyping Answer is Mandatory! Explain the difference between cyclic hydr.docx
Typing Answer is Mandatory! Explain the difference between cyclic hydr.docx
 
type of accountsSolutionSolution- 1- All of the three are types of Acc.docx
type of accountsSolutionSolution- 1- All of the three are types of Acc.docxtype of accountsSolutionSolution- 1- All of the three are types of Acc.docx
type of accountsSolutionSolution- 1- All of the three are types of Acc.docx
 
Two KPMG auditors- Kevin Hall and Rosemary Meyer- were accused of impr.docx
Two KPMG auditors- Kevin Hall and Rosemary Meyer- were accused of impr.docxTwo KPMG auditors- Kevin Hall and Rosemary Meyer- were accused of impr.docx
Two KPMG auditors- Kevin Hall and Rosemary Meyer- were accused of impr.docx
 
Question 28 (3 points) A student performs a titration procedure by add.docx
Question 28 (3 points) A student performs a titration procedure by add.docxQuestion 28 (3 points) A student performs a titration procedure by add.docx
Question 28 (3 points) A student performs a titration procedure by add.docx
 
Question 26 The stock of Kenny Corp- is owned equally by two brothers-.docx
Question 26 The stock of Kenny Corp- is owned equally by two brothers-.docxQuestion 26 The stock of Kenny Corp- is owned equally by two brothers-.docx
Question 26 The stock of Kenny Corp- is owned equally by two brothers-.docx
 
Question 2 Which of the following would be a cash flow from financing.docx
Question 2 Which of the following would be a cash flow from financing.docxQuestion 2 Which of the following would be a cash flow from financing.docx
Question 2 Which of the following would be a cash flow from financing.docx
 
Question 2 1- Which of the following is not a way managers generally b.docx
Question 2 1- Which of the following is not a way managers generally b.docxQuestion 2 1- Which of the following is not a way managers generally b.docx
Question 2 1- Which of the following is not a way managers generally b.docx
 
Question 19 of 20 5 0 Points A important part of weather science is --.docx
Question 19 of 20 5 0 Points A important part of weather science is --.docxQuestion 19 of 20 5 0 Points A important part of weather science is --.docx
Question 19 of 20 5 0 Points A important part of weather science is --.docx
 
Question on Exponential and Logarithmic functions Banking The compound.docx
Question on Exponential and Logarithmic functions Banking The compound.docxQuestion on Exponential and Logarithmic functions Banking The compound.docx
Question on Exponential and Logarithmic functions Banking The compound.docx
 
Question Five- State the advantages and a major limitation of each of.docx
Question Five- State the advantages and a major limitation of each of.docxQuestion Five- State the advantages and a major limitation of each of.docx
Question Five- State the advantages and a major limitation of each of.docx
 
Question 11- (1 points) (#50 from textbook) The January 2- 2011 eart (1).docx
Question 11- (1 points)  (#50 from textbook)  The January 2- 2011 eart (1).docxQuestion 11- (1 points)  (#50 from textbook)  The January 2- 2011 eart (1).docx
Question 11- (1 points) (#50 from textbook) The January 2- 2011 eart (1).docx
 
Question Part Points Submissions Used Solution.docx
Question Part     Points     Submissions Used   Solution.docxQuestion Part     Points     Submissions Used   Solution.docx
Question Part Points Submissions Used Solution.docx
 
Question 11- (1 points) (#50 from textbook) The January 2- 2011 eart.docx
Question 11- (1 points)  (#50 from textbook)  The January 2- 2011 eart.docxQuestion 11- (1 points)  (#50 from textbook)  The January 2- 2011 eart.docx
Question 11- (1 points) (#50 from textbook) The January 2- 2011 eart.docx
 

Recently uploaded

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 

Recently uploaded (20)

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 

Question1- What is the output of the following program- #include -iost.docx

  • 1. Question1: What is the output of the following program? #include <iostream> using namespace std; //prototype of function find void find (int &a, int &b, int c); int main () { int one, two, three; one = 1; two = 2; three = 3; //call function find find (one, two, three); cout << "first call: " << one << ", " << two << ", " << three << endl; //call function find find (one, two, three); cout << "second call: " << one << ", " << two << ", " << three << endl; //call function find find (one, two, three); cout << "third call: " << one << ", " << two << ", " << three << endl; system("pause"); return 0;
  • 2. } //User defined function with reference parameters void find (int &a, int &b, int c) { int temp; c = a + b + 1 ; temp = c + 2; a = a + c; b = a + temp; } Solution Answer 1: output is Answer 2: in the definition of the function void functionDefaultParam(double x = 2.4, int y = 3, string z = "H") the string is not a defined datatype in c++, you can use array of character