Computer Science, asked by somugodithi1234, 6 months ago

FOR ALL QUESTIONS IN THIS PRACTICE EXAM REFER TO THE FOLLOWING: //What does this program print? #include using namespace std; #define foo1( a ) (a * a) inline int foo2( int a ) { return (a * a); } inline int goo1( int x ) { return foo1(foo2(x)); } inline int goo2( int& x ) { return x = foo2(foo1(x)); } inline int goo3( int& x, int y ) { return foo2(foo1(y + 1)); } inline void goo4( int& x, int y ) { x = foo1(foo2(y + 1)); } int main() { int i = 2, j = 1; cout << "foo1 = " << foo1( 1 + 2 ) << "\n"; cout << "foo2 = " << foo2( 2 + 1 ) << "\n"; cout << "goo1 = " << goo1( i ) << "\n"; cout << "goo2 = " << goo2( j ) << "\n"; cout << "goo3 = " << goo3( i, j ) << "\n"; goo4( i, j ); cout << "i = " << i << "\nj = " << j << "\n"; return 0; } Enter the numerical answer forfoo1. 1 point Enter answer here 2.Question 2 Enter the numerical answer for foo2. 1 point Enter answer here 3.Question 3 Enter the numerical answer for goo1. 1 point Enter answer here 4.Question 4 Enter the numerical answer for goo2. 1 point Enter answer here 5.Question 5 Enter the numerical answer for goo3. 1 point Enter answer here 6.Question 6 Enter the numerical answer for i. 1 point Enter answer here 7.Question 7 Enter the numerical answer for j. 1 point

Answers

Answered by BabeFathima786
0

Answer:

I don't know eyfugihohftstfugihoguffufifitditfiyfyyidkhchofoyf9ydyk lhcmv

Similar questions