SlideShare a Scribd company logo
1 of 1
Download to read offline
Problem 4. [20 pts] Given the following function and main program int operation (int a[1, ints b, int
c) int r; r=ab; b=t(a+1)2; c=b2; return (r); 1 int main()) int i[2], j=2,k=3; cin >>i[0]; i[1] (i)++; cout
operation (i,j,k)+jk; return 0; 4.a [4 pts] is the argument a passed by value or reference? Answer:
4.b [4 pts] is the argument b passed by value or reference? Answer: 4.c [4 pts] Is the argument c
passed by value or reference? Answer: 4.d [ 4 pts] What standard input is needed to get the
output to be 0 ?

More Related Content

More from abyssiniaimpex1

The Tech section in Forbes magazine reported that the crimi.pdf
The Tech section in Forbes magazine reported that the crimi.pdfThe Tech section in Forbes magazine reported that the crimi.pdf
The Tech section in Forbes magazine reported that the crimi.pdf
abyssiniaimpex1
 
1 Was it a wise move by Netflix to move from a distribution.pdf
1 Was it a wise move by Netflix to move from a distribution.pdf1 Was it a wise move by Netflix to move from a distribution.pdf
1 Was it a wise move by Netflix to move from a distribution.pdf
abyssiniaimpex1
 
Hello Please help me with the following questions in order .pdf
Hello Please help me with the following questions in order .pdfHello Please help me with the following questions in order .pdf
Hello Please help me with the following questions in order .pdf
abyssiniaimpex1
 
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdf
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdfConceptual Leadership Questionnaire Pg 2022 Take Question.pdf
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdf
abyssiniaimpex1
 
El peligro de una sola historia Quiero resaltar que uno de .pdf
El peligro de una sola historia  Quiero resaltar que uno de .pdfEl peligro de una sola historia  Quiero resaltar que uno de .pdf
El peligro de una sola historia Quiero resaltar que uno de .pdf
abyssiniaimpex1
 
Due Date Sunday Feb 26 2023 Note Assignment 2 The project.pdf
Due Date Sunday Feb 26 2023 Note Assignment 2 The project.pdfDue Date Sunday Feb 26 2023 Note Assignment 2 The project.pdf
Due Date Sunday Feb 26 2023 Note Assignment 2 The project.pdf
abyssiniaimpex1
 

More from abyssiniaimpex1 (15)

The Tech section in Forbes magazine reported that the crimi.pdf
The Tech section in Forbes magazine reported that the crimi.pdfThe Tech section in Forbes magazine reported that the crimi.pdf
The Tech section in Forbes magazine reported that the crimi.pdf
 
QUESTION 1 Second mouth A Eumetazoans Molting animals .pdf
QUESTION 1  Second mouth A Eumetazoans Molting animals .pdfQUESTION 1  Second mouth A Eumetazoans Molting animals .pdf
QUESTION 1 Second mouth A Eumetazoans Molting animals .pdf
 
Problems on P functions Find the value of each Integral 1 0.pdf
Problems on P functions Find the value of each Integral 1 0.pdfProblems on P functions Find the value of each Integral 1 0.pdf
Problems on P functions Find the value of each Integral 1 0.pdf
 
Need help finding pvalue with Statskey graph Thank you The.pdf
Need help finding pvalue with Statskey graph Thank you The.pdfNeed help finding pvalue with Statskey graph Thank you The.pdf
Need help finding pvalue with Statskey graph Thank you The.pdf
 
1 Was it a wise move by Netflix to move from a distribution.pdf
1 Was it a wise move by Netflix to move from a distribution.pdf1 Was it a wise move by Netflix to move from a distribution.pdf
1 Was it a wise move by Netflix to move from a distribution.pdf
 
Homework 1 Generate vehicle plate numbers Assume a New Yor.pdf
Homework 1  Generate vehicle plate numbers Assume a New Yor.pdfHomework 1  Generate vehicle plate numbers Assume a New Yor.pdf
Homework 1 Generate vehicle plate numbers Assume a New Yor.pdf
 
How to Turn a Group of Strangers Into a Team In the age of v.pdf
How to Turn a Group of Strangers Into a Team In the age of v.pdfHow to Turn a Group of Strangers Into a Team In the age of v.pdf
How to Turn a Group of Strangers Into a Team In the age of v.pdf
 
I am trying to implement an ArrayStack but only can get 4 te.pdf
I am trying to implement an ArrayStack but only can get 4 te.pdfI am trying to implement an ArrayStack but only can get 4 te.pdf
I am trying to implement an ArrayStack but only can get 4 te.pdf
 
Hello Please help me with the following questions in order .pdf
Hello Please help me with the following questions in order .pdfHello Please help me with the following questions in order .pdf
Hello Please help me with the following questions in order .pdf
 
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdf
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdfConceptual Leadership Questionnaire Pg 2022 Take Question.pdf
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdf
 
El peligro de una sola historia Quiero resaltar que uno de .pdf
El peligro de una sola historia  Quiero resaltar que uno de .pdfEl peligro de una sola historia  Quiero resaltar que uno de .pdf
El peligro de una sola historia Quiero resaltar que uno de .pdf
 
El 1 de enero de 2020 Lennon Industries tena acciones en c.pdf
El 1 de enero de 2020 Lennon Industries tena acciones en c.pdfEl 1 de enero de 2020 Lennon Industries tena acciones en c.pdf
El 1 de enero de 2020 Lennon Industries tena acciones en c.pdf
 
Consider the need for stakeholder engagement when implementi.pdf
Consider the need for stakeholder engagement when implementi.pdfConsider the need for stakeholder engagement when implementi.pdf
Consider the need for stakeholder engagement when implementi.pdf
 
1 Aadaki zelliklerden hangisi tipik bir erelti otunda bulu.pdf
1 Aadaki zelliklerden hangisi tipik bir erelti otunda bulu.pdf1 Aadaki zelliklerden hangisi tipik bir erelti otunda bulu.pdf
1 Aadaki zelliklerden hangisi tipik bir erelti otunda bulu.pdf
 
Due Date Sunday Feb 26 2023 Note Assignment 2 The project.pdf
Due Date Sunday Feb 26 2023 Note Assignment 2 The project.pdfDue Date Sunday Feb 26 2023 Note Assignment 2 The project.pdf
Due Date Sunday Feb 26 2023 Note Assignment 2 The project.pdf
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
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
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
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...
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 

Problem 4 20 pts Given the following function and main pr.pdf

  • 1. Problem 4. [20 pts] Given the following function and main program int operation (int a[1, ints b, int c) int r; r=ab; b=t(a+1)2; c=b2; return (r); 1 int main()) int i[2], j=2,k=3; cin >>i[0]; i[1] (i)++; cout operation (i,j,k)+jk; return 0; 4.a [4 pts] is the argument a passed by value or reference? Answer: 4.b [4 pts] is the argument b passed by value or reference? Answer: 4.c [4 pts] Is the argument c passed by value or reference? Answer: 4.d [ 4 pts] What standard input is needed to get the output to be 0 ?