The following program has been partitioned into two files. The command line command for compiling this is CC B.cpp A.cpp, where CC is the name for your command line compiler. For VC++ this is CL, for Borland, this is BCC32, and for the GNU C++ compiler, this is g++. If you use an IDE (integrated development environment) you would have to place both these files in your project then click the compile button.

Predict the output and explain your prediction.
```
// This goes in file A.cpp
namespace
{
int func(int i)
{
return i*3;
}

int junk (int i)
{
return i*func(i);
// This goes in file B.cpp
#include
int func(int i)
{
return i*5;
}
int junk(int i); //from A.cpp
int main()
{
cout <<”func(5) = “ << func(5) <<
cout <<”junk(5) = “ << junk(5) < ```
What will be an ideal response?


```
func(5) = 25
junk(5) = 75
```

Computer Science & Information Technology

You might also like to view...

When an operation is performed on two double values, the result will be a(n) ____________.

a. int b. double c. string d. decimal

Computer Science & Information Technology

A(n) ________ consists of 8 bits and represents a single character in modern computer systems

Fill in the blank(s) with correct word

Computer Science & Information Technology

Items 7, 3, 11, 9, and 13 are inserted into an AVL tree. What happens when 12 is inserted?

a. no rotation is needed b. a single rotation between some node and its left child is performed c. a single rotation between some node and its right child is performed d. a double rotation with a node, its left child, and a third node is per formed e. a double rotation with a node, its right child, and a third node is per- formed

Computer Science & Information Technology

Match each of the following terms to its definition

I. Bullets II. Tab stops III. Dot leader IV. Leader character V. Margins A. Small circles or check marks B. A solid, dotted, or dashed line C. Symbols that appear after pressing Tab D. Displays between columns of a list E. A document layout element

Computer Science & Information Technology