Assume the variable PI is declared globally. Given what is shown here, what would be the compiler error?

In the function header line and body:

```
void CalcArea(double rad)
{
double rad, area;
area = PI * pow(rad, 2);
cout >> "The area is==>" << area << endl;
}

```


A. There is no error.
B. rad is declared twice.
C. The cout statement is incorrect.
D. The pow function is misspelled.


C. The cout statement is incorrect.

Computer Science & Information Technology

You might also like to view...

Styles that you have previously applied might conflict with div styles, so you might want to remove redundant style ____, such as font and alignment settings.

A. lists B. properties C. tags D. blocks

Computer Science & Information Technology

The statement if (document.getElementById) returns ____ when a browser is compatible with the W3C's version of DHTML.

A. false B. true C. yes D. an error message

Computer Science & Information Technology

To obtain IP addresses through reconnaissance, an attacker can use ________.

a chain of attack computers Both IP address spoofing and a chain of attack computers Neither IP address spoofing nor a chain of attack computers

Computer Science & Information Technology

To make the same update for all rows in a table, omit the ____ clause.

A. SET B. UPDATE C. WHERE D. ALTER

Computer Science & Information Technology