What is wrong with the following code?

```
int TVset::GetScreen(int scr)
{
screen = scr;
}

int main( )
{
TVset myTV;
int myscreen;
myscreen = myTV.GetScreen( );
}

```

A. should be myscreen = myTV->GetScreen();
B. Nothing is wrong with the code.
C. GetScreen does not return a value.
D. None of the above.


C. GetScreen does not return a value.

Computer Science & Information Technology

You might also like to view...

RAID-5 is also known as striping with parity, and provides fault tolerance

Indicate whether the statement is true or false

Computer Science & Information Technology

?____ tags are one type of real-time location system.

A. ?UPS B. ?RFID C. ?EFS D. ?FDE

Computer Science & Information Technology

System software includes all of the following except:

A. real-time operating systems B. stand-alone operating systems C. browsers D. utilities

Computer Science & Information Technology

In recursion, the statement that "solves" the problem is known as the _____.

A. return statement B. base case C. recursive call D. recursive step

Computer Science & Information Technology