Does this code have a problem?

```
char strVar[] = “Hello”;
strcat(strVar, “ And Good-bye.”);
cout << strVar << endl;
```
What will be an ideal response?


The output is questionable. You might get Hello And Good-bye. But you
might not. It stomps memory a few characters away from your C-string. Your system
might crash the next time you load an application. The C-string variable, strVar
isn’t large enough to hold all we are attempting to stuff into it..

Computer Science & Information Technology

You might also like to view...

____________________ broadcasts are broadcasts for any subnet and use the IP address 255.255.255.255.

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

Computer Science & Information Technology

The most economically damaging kinds of computer crime are e-mail viruses.

a. true b. false

Computer Science & Information Technology

Which security functions are normally performed by IT groups outside the InfoSec area of management control?

What will be an ideal response?

Computer Science & Information Technology

When moving from an internally controlled environment to a fully outsourced infrastructure environment, such as cloud computing, it is MOST important to:

A. Implement mandatory access controls. B. Ensure RAID 0 is implemented on servers. C. Impose time of day restrictions across all services D. Encrypt all confidential data.

Computer Science & Information Technology