SlideShare uma empresa Scribd logo
1 de 3
Baixar para ler offline
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

Mais conteúdo relacionado

Semelhante a 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
 

Semelhante a 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
 

Mais de 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
 

Mais de 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
 

Último

How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineCeline George
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...Nguyen Thanh Tu Collection
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEMISSRITIMABIOLOGYEXP
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfChristalin Nelson
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfChristalin Nelson
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxAvaniJani1
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxryandux83rd
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPCeline George
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...Nguyen Thanh Tu Collection
 
Shark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsShark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsArubSultan
 

Último (20)

Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command Line
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdf
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptx
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptx
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 
CARNAVAL COM MAGIA E EUFORIA _
CARNAVAL COM MAGIA E EUFORIA            _CARNAVAL COM MAGIA E EUFORIA            _
CARNAVAL COM MAGIA E EUFORIA _
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERP
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
 
Shark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsShark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristics
 

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