CO code below. function phil (int a, int b, int c) begin end b := b + 5; b = a + c + 4; print a, b, c; function main begin int j := 10; ink k := 15; phil(j, j, j + k); print j, k; end shalic ava A x is passed by value ref. wis pased toy ref. y B Stahs scoping. Brow Yad 56 und 10 Under 3 • Unde 2 undef Undf Links (static/d parameters local vaiably local runtine Stack. A 3 @b " int i = 0; ས༽བ i=0 Variable/identifier name int 5. Cheap Bw 3.99 @h mdf under
CO code below. function phil (int a, int b, int c) begin end b := b + 5; b = a + c + 4; print a, b, c; function main begin int j := 10; ink k := 15; phil(j, j, j + k); print j, k; end shalic ava A x is passed by value ref. wis pased toy ref. y B Stahs scoping. Brow Yad 56 und 10 Under 3 • Unde 2 undef Undf Links (static/d parameters local vaiably local runtine Stack. A 3 @b " int i = 0; ས༽བ i=0 Variable/identifier name int 5. Cheap Bw 3.99 @h mdf under
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter16: Searching, Sorting And Vector Type
Section: Chapter Questions
Problem 20PE
Related questions
Question
I need to draw the state of the memory using the specifications below and provide answers to the question. I have to do it similar to the one shown on the board if that makes any sense.
All parameters are passed by reference.
The language uses static scoping.
What are the values of j and k after the execution of the program?
![CO code below.
function phil (int a, int b, int c)
begin
end
b := b + 5;
b = a + c + 4;
print a, b, c;
function main begin
int j := 10;
ink k := 15;
phil(j, j, j + k);
print j, k;
end](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5fdf9dd4-ca9f-4279-a7ed-52c51115610d%2Fcb8f9581-66ec-45a0-ac81-7a913583f26c%2F4rndfnn_processed.png&w=3840&q=75)
Transcribed Image Text:CO code below.
function phil (int a, int b, int c)
begin
end
b := b + 5;
b = a + c + 4;
print a, b, c;
function main begin
int j := 10;
ink k := 15;
phil(j, j, j + k);
print j, k;
end
![shalic
ava
A x is passed by value
ref.
wis pased toy ref.
y
B
Stahs scoping.
Brow
Yad 56
und 10
Under 3
•
Unde 2
undef
Undf
Links (static/d
parameters
local vaiably
local
runtine
Stack. A
3
@b
" int i = 0;
ས༽བ
i=0
Variable/identifier
name
int
5.
Cheap
Bw
3.99
@h
mdf
under](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5fdf9dd4-ca9f-4279-a7ed-52c51115610d%2Fcb8f9581-66ec-45a0-ac81-7a913583f26c%2Ffsjjxv8_processed.jpeg&w=3840&q=75)
Transcribed Image Text:shalic
ava
A x is passed by value
ref.
wis pased toy ref.
y
B
Stahs scoping.
Brow
Yad 56
und 10
Under 3
•
Unde 2
undef
Undf
Links (static/d
parameters
local vaiably
local
runtine
Stack. A
3
@b
" int i = 0;
ས༽བ
i=0
Variable/identifier
name
int
5.
Cheap
Bw
3.99
@h
mdf
under
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning