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 211 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!