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.

Computer Science & Information Technology

You might also like to view...

The next generation of the World Wide Web is called __________.

Fill in the blank(s) with correct word

Computer Science & Information Technology

Sequential Search is in the complexity class

A) O(1) B) O(log n) C) O(n) D) O(n log n)

Computer Science & Information Technology

With ________, tags are customized for content of a specific industry

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When preparing slides for a presentation, use special effects liberally — many graphics, colors, sounds, or other special effects will help the audience to concentrate.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology