Here is a small program. Which of the statements about the variables is correct?
```
#include
const double NUM = 2.9345358;
double num = 3;
double numTimes(int x);
int main( )
{
using namespace std;
int value;
cout << “Enter a value, I’ll multiply it by “
<< NUM << endl;
cin >> value;
cout << “You entered “ << value
<< “ NUM times this is “ << numTimes(value)
<< endl;
return 0;
}
double numTimes(int x)
{
double d;
d = NUM * x;
return d;
```
a) NUM is a global variable.
b) num is a global constant.
c) value is local variable in the main function
d) d is a local variable in the numTimes function.
c) value is local variable in the main function
d) d is a local variable in the numTimes function.
You might also like to view...
A ____ in G is a simple path in which the first and last vertices are the same.
A. circle B. loop C. cycle D. recursion
In the heap sort algorithm ____ is selected and exchanged with the last element in the unsorted list.
A. the last element B. a random element C. the largest element D. the smallest element
The decision to let an attack continue should be made by ________.
IT IT security senior business executives public relations
?A(n) style is a rule that defines the appearance and position of text and graphics. ____________________
Answer the following statement true (T) or false (F)