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...
Once the BIOS locates the operating system, it loads the operating system into ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
When functional area information systems (FAISS) struggle to communicate effectively, transaction processing systems are adopted to integrate them
A. True B. False
Computer Science & Information Technology