Question from the Language C - Fundamentals test

Undefined behavior.

Medium

Qualify the following code:

char *p;

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

strncpy (p, «abcde», 5);

Author: Abha AgrawaStatus: PublishedQuestion passed 68 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!