Identify the compiler errors and state what is needed to eliminate the error(s).

```
#include
string AskForTime();
int main
{
string thisTime;
AskForTime();


```


```
#include
string AskForTime();
int main
{
string thisTime;
AskForTime(); << will compile OK but need to assign in call
thisTime = AskForTime();
}
```

Computer Science & Information Technology

You might also like to view...

The ________ function will replace one string with another

Fill in the blank(s) with correct word

Computer Science & Information Technology

All communications on a TCP/IP network can be assigned to one of ______ layers of communication as described by the Open Systems Interconnection reference model

a. Four b. Five c. Six d. None of the above

Computer Science & Information Technology

A technician is asked to troubleshoot a server that constantly reboots. There are no error messages displayed on the server. Which of the following should the technician check?

A. Cooling failure B. Cable mismatch C. BIOS driver failure D. Port conflict

Computer Science & Information Technology

Suppose a String variable s is initialized to the value “inheritance”. What value is returned by the call s.substring(2, 5 ) ?

a) nher b) nheri c) her d) heri

Computer Science & Information Technology