Describe the flaw in the following function.
```
/*
* Forms the plural of noun by adding an 's'.
*/
char *
add_s(const char *noun)
{
char result[100];
strcpy(result, noun);
strcat(result, "s");
return (result);
}
/code}
It returns the address of local storage as the function value. This space is deallocated as soon as the function returns.
You might also like to view...
Which of the following statements is false?
a. The following f-string inserts the value of average into a string: f'Class average is {average}' b. You specify where to insert values in an f-string by using placeholders delimited by curly braces ({ and }). c. The placeholder {average} converts the variable average’s value to a string representation, then replaces {average} with that replacement text. d. Replacement-text expressions may contain values, variables or other expressions, such as calculations, but may not contain function calls.
The exact separator that follows the communications protocol depends on the ____.
A. Web server B. Web page C. Internet resource D. Internet node
Each of the following is a relational or equality operator except:
a. <= b. =! c. == d. >
Hyperlinks are created in InDesign using the web panel.
Answer the following statement true (T) or false (F)