SlideShare a Scribd company logo
1 of 1
Download to read offline
Using C++. Keep it simple please.
What is Call-By-Value and Call-By-Reference? Cite your sources
Create 2 Functions int xvalue(int) and int yreference(&int).
Within main( ) prompt the user to enter 2 #s (x & y).
Send x as a call by value (capture the int x and then change x to x*x)
Send y as a call by reference (capture the int y and change it to y*y)
Return and display both integers

More Related Content

More from anagpalknitwears

Using Probability in Genetics 1- Let's say you roll a dice (standard s.pdf
Using Probability in Genetics 1- Let's say you roll a dice (standard s.pdfUsing Probability in Genetics 1- Let's say you roll a dice (standard s.pdf
Using Probability in Genetics 1- Let's say you roll a dice (standard s.pdf
anagpalknitwears
 

More from anagpalknitwears (20)

Using PowerPoint create a slideshow of your brain dissection along sid.pdf
Using PowerPoint create a slideshow of your brain dissection along sid.pdfUsing PowerPoint create a slideshow of your brain dissection along sid.pdf
Using PowerPoint create a slideshow of your brain dissection along sid.pdf
 
Using Probability in Genetics 1- Let's say you roll a dice (standard s.pdf
Using Probability in Genetics 1- Let's say you roll a dice (standard s.pdfUsing Probability in Genetics 1- Let's say you roll a dice (standard s.pdf
Using Probability in Genetics 1- Let's say you roll a dice (standard s.pdf
 
Using Pep8- 24- Write an assembly language program that corresponds ex.pdf
Using Pep8- 24- Write an assembly language program that corresponds ex.pdfUsing Pep8- 24- Write an assembly language program that corresponds ex.pdf
Using Pep8- 24- Write an assembly language program that corresponds ex.pdf
 
Using JK flip-flops- design one typical stage of an A register (Accumu.pdf
Using JK flip-flops- design one typical stage of an A register (Accumu.pdfUsing JK flip-flops- design one typical stage of an A register (Accumu.pdf
Using JK flip-flops- design one typical stage of an A register (Accumu.pdf
 
Using figure A- list the sequence of events represented by the letters.pdf
Using figure A- list the sequence of events represented by the letters.pdfUsing figure A- list the sequence of events represented by the letters.pdf
Using figure A- list the sequence of events represented by the letters.pdf
 
Using GDP per capita in 2020 (measured in U-S- dollars- corrected for.pdf
Using GDP per capita in 2020 (measured in U-S- dollars- corrected for.pdfUsing GDP per capita in 2020 (measured in U-S- dollars- corrected for.pdf
Using GDP per capita in 2020 (measured in U-S- dollars- corrected for.pdf
 
Using experimental design as in analysis of variance (ANOVA)- Determin.pdf
Using experimental design as in analysis of variance (ANOVA)- Determin.pdfUsing experimental design as in analysis of variance (ANOVA)- Determin.pdf
Using experimental design as in analysis of variance (ANOVA)- Determin.pdf
 
Using examples and illustrations- discuss various ways in which inform.pdf
Using examples and illustrations- discuss various ways in which inform.pdfUsing examples and illustrations- discuss various ways in which inform.pdf
Using examples and illustrations- discuss various ways in which inform.pdf
 
Using examples- discuss the pros and cons of copyright protections fro.pdf
Using examples- discuss the pros and cons of copyright protections fro.pdfUsing examples- discuss the pros and cons of copyright protections fro.pdf
Using examples- discuss the pros and cons of copyright protections fro.pdf
 
Using each of the combining forms below to create medical terms- Spell.pdf
Using each of the combining forms below to create medical terms- Spell.pdfUsing each of the combining forms below to create medical terms- Spell.pdf
Using each of the combining forms below to create medical terms- Spell.pdf
 
Using C++- Keep it simple please Part 1- Prompt the user to enter 3 s.pdf
Using C++- Keep it simple please  Part 1- Prompt the user to enter 3 s.pdfUsing C++- Keep it simple please  Part 1- Prompt the user to enter 3 s.pdf
Using C++- Keep it simple please Part 1- Prompt the user to enter 3 s.pdf
 
Using an isoquant map- illustrate the concept of diminishing returns-.pdf
Using an isoquant map- illustrate the concept of diminishing returns-.pdfUsing an isoquant map- illustrate the concept of diminishing returns-.pdf
Using an isoquant map- illustrate the concept of diminishing returns-.pdf
 
User left the page- User selected contents of an object- User clicked.pdf
User left the page- User selected contents of an object- User clicked.pdfUser left the page- User selected contents of an object- User clicked.pdf
User left the page- User selected contents of an object- User clicked.pdf
 
Using a qualitative methodology and collecting data in the field- a re.pdf
Using a qualitative methodology and collecting data in the field- a re.pdfUsing a qualitative methodology and collecting data in the field- a re.pdf
Using a qualitative methodology and collecting data in the field- a re.pdf
 
Use the teensurvey data ` 2- A researcher is interested in the unique (1).pdf
Use the teensurvey data ` 2- A researcher is interested in the unique (1).pdfUse the teensurvey data ` 2- A researcher is interested in the unique (1).pdf
Use the teensurvey data ` 2- A researcher is interested in the unique (1).pdf
 
Use the teensurvey data A researcher is interested in the unique eff (1).pdf
Use the teensurvey data   A researcher is interested in the unique eff (1).pdfUse the teensurvey data   A researcher is interested in the unique eff (1).pdf
Use the teensurvey data A researcher is interested in the unique eff (1).pdf
 
Use the scenario to answer the question- A random sample of 454 middle.pdf
Use the scenario to answer the question- A random sample of 454 middle.pdfUse the scenario to answer the question- A random sample of 454 middle.pdf
Use the scenario to answer the question- A random sample of 454 middle.pdf
 
Use the scientific methods to the data below Use the scientific method.pdf
Use the scientific methods to the data below Use the scientific method.pdfUse the scientific methods to the data below Use the scientific method.pdf
Use the scientific methods to the data below Use the scientific method.pdf
 
Use the properties of events and probability to show that P((AB)D)-P(A.pdf
Use the properties of events and probability to show that P((AB)D)-P(A.pdfUse the properties of events and probability to show that P((AB)D)-P(A.pdf
Use the properties of events and probability to show that P((AB)D)-P(A.pdf
 
Use the Project Plan Template and the business needs identified in you.pdf
Use the Project Plan Template and the business needs identified in you.pdfUse the Project Plan Template and the business needs identified in you.pdf
Use the Project Plan Template and the business needs identified in you.pdf
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 

Using C++- Keep it simple please- What is Call-By-Value and Call-By-Re.pdf

  • 1. Using C++. Keep it simple please. What is Call-By-Value and Call-By-Reference? Cite your sources Create 2 Functions int xvalue(int) and int yreference(&int). Within main( ) prompt the user to enter 2 #s (x & y). Send x as a call by value (capture the int x and then change x to x*x) Send y as a call by reference (capture the int y and change it to y*y) Return and display both integers