please provide the answers to the points in this variable trace Trace through the program below. Indicate value of each of the variables or parameters at the indicated points in the program. Enter 'U' if the variable or parameter is undefined or does not exist at that point. #include void test (int, int &); int y; void main (void) { int x; x = 5; y = 6; // point #1 test (x, y); // point #3 } void test (int a, int &b) { int c; y = 1; a = 3; b = 9; c = 5; // point #2 } Point #1, Variable x Point #1, Variable y Point #1, Variable a Point #1, Variable b Point #1, Variable c Point #2, Variable x Point #2, Variable y Point #2, Variable a Point #2, Variable b Point #2, Variable c Point #3, Variable x Point #3, Variable y Point #3, Variable a Point #3, Variable b Point #3, Variable c
please provide the answers to the points in this variable trace
Trace through the program below. Indicate value of each of the variables or parameters at the indicated points in the program. Enter 'U' if the variable or parameter is undefined or does not exist at that point.
#include <iostream.h>
void test (int, int &);
int y;
void main (void)
{
int x;
x = 5;
y = 6;
// point #1
test (x, y);
// point #3
}
void test (int a, int &b)
{
int c;
y = 1;
a = 3;
b = 9;
c = 5;
// point #2
}
Point #1, Variable x
Point #1, Variable y
Point #1, Variable a
Point #1, Variable b
Point #1, Variable c
Point #2, Variable x
Point #2, Variable y
Point #2, Variable a
Point #2, Variable b
Point #2, Variable c
Point #3, Variable x
Point #3, Variable y
Point #3, Variable a
Point #3, Variable b
Point #3, Variable c
Step by step
Solved in 2 steps