SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Ähnlich wie 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
 
Python Exception handling using Try-Except-Finally
Python Exception handling using Try-Except-FinallyPython Exception handling using Try-Except-Finally
Python Exception handling using Try-Except-FinallyVinod Srivastava
 
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
 

Ähnlich wie 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
 
Python Exception handling using Try-Except-Finally
Python Exception handling using Try-Except-FinallyPython Exception handling using Try-Except-Finally
Python Exception handling using Try-Except-Finally
 
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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Kürzlich hochgeladen (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

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