What is the problem (if any) with this code?
```
char s1[20] = “How you been? ”;
strcat(s1, “Fine as wine”);
```
What will be an ideal response?
Not enough room for the source C-string to be concatenated to the C-string
in the destination string. The strcat function copies the first character of the
second argument (the source) to the null terminator of the first argument (the
destination). Successive characters are copied until the null terminator for the source string is reached. No check is made concerning space available.
You might also like to view...
Which of the following is not true about static methods?
a. They are created by placing the key word static after the access specifier in the method header. b. It is necessary for an instance of the class to be created to execute the method. c. They are called directly from the class. d. They are often used to create utility classes that perform operations on data but have no need to store and collect data.
A server program written in one language (for example C++) provides the implementation of a BLOB object that is intended to be accessed by clients that may be written in a different language (for example Java). The client and server computers may have different hardware, but all of them are attached to an internet. Describe the problems due to each of the five aspects of heterogeneity that need to be solved to make it possible for a client object to invoke a method on the server object.
What will be an ideal response?
Which of the following is NOT a step to reduce the amount of spam you receive?
A. Reply to spam when you receive it. B. Don't click links in e-mail messages, even if it's an opt-out link. C. If your e-mail provider offers a way to report spam, use it. D. When spam gets out of hand, consider changing your e-mail account so that you have a different e-mail address.
The computer uses a stack to implement function calls.
Answer the following statement true (T) or false (F)