Given the function definition, which of the following are correct?
```
int func(int n, double d)
{
int j = n;
double sum = 0;
while( j >= 0)
{
sum += d;
-j;
}
return sum;
```
a) returns 7*2
b) returns 7+2
c) returns 7!
d) There is a syntax error in the program so it won’t run.
e) It compiles but computes none of these.
e) It compiles but computes none of these.
You might also like to view...
When would a programmer write more than one constructor?
A. You never have more than one constructor. B. The constructor cannot be overloaded. C. The one object can be created by two different constructors. D. When the object can be initialized in more than one way.
Which of the following is not found in the function header?
A. the function name B. the formal parameter list C. the return type D. the function definition