Question: 1- What can be passed into a function as an argument? (Choose all that apply) Choose all that apply. A constant variable A variable A

1- What can be passed into a function as an argument? (Choose all that apply)

Choose all that apply.

A constant variable

A variable

A structure

An object

An enum

2- How many times will the text "I got here" be displayed for this loop?

for(int i = 0; i < 10; i++) { for(int j = 10; j>= 0; j--) { if(i == j) cout << "I got here" << endl; } }

3- How many times will the following code display "I got here"!

#include  using namespace std; void myFunction(int value) { if (value < 128) { int temp; temp = value + value; cout << "I got here" << endl; myFunction(temp); } } int main() { myFunction(2); return 0; }

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!