Question from the C++ test

Undefined behavior.

Archived

Qualify the following code:

char *p;

p = (char *)malloc (5 * sizeof (char));

strncpy (p, «abcde», 5);

Author: Abha AgrawaStatus: ArchivedQuestion passed 383 times
0
Community EvaluationsNo one has reviewed this question yet, be the first!