Question: This exercise reviews the flow of execution through a program with multiple methods. Read the following code and answer the questions below. #include #include void

This exercise reviews the flow of execution through a program with multiple methods. Read the following code and answer the questions below.

#include

#include

void Zippo (int quince, int flag);

void Baffle (int output)

{

printf ("%i ",output);

Zippo (12, -5);

}

void Zippo (int quince, int flag)

{

if (flag < 0)

{

printf ("%i zoop ", quince);

}

else

{

printf ("rattle ");

Baffle (quince);

printf ("boo-wa-ha-ha ");

} }

int main (void)

{

Zippo (5, 13);

return EXIT_SUCCESS;

}

a. Write the number 1 next to the first statement of this program that will be executed. Be careful to distinguish things that are statements from things that are not.

b. Write the number 2 next to the second statement, and so on until the end of the program. If a statement is executed more than once, it might end up with more than one number next to it.

c. What is the value of the parameter blimp when baffle() gets invoked? d. What is the output of this program?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!