What is the output of the following code fragment?
int f1(int base, int limit)
{
if(base > limit)
return -1;
else
if(base == limit)
return 1;
else
return base * f1(base+1, limit);
}
int main()
{
cout << f1(2,4)<
}
a. 2
b. 3
c. -1
d. 6
d. 6
You might also like to view...
The policy development process is overseen by the ____.
A. CIO B. CISO C. security architect D. security engineer
Which of the following statements is false?
a. A class can directly inherit from class Object. b. It's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires. c. If the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. d. A class's instance variables are normally declared private to enforce good software engineering.
When working with a two-dimensional chart, the horizontal (X) axis displays ________ for the categories
Fill in the blank(s) with correct word
__________ are computers that provide services, such as Internet access, email, or file and print services, to client systems.
a. Clients b. Embedded computers c. Servers d. Workstations